diff options
Diffstat (limited to 'tdeui/kcursor.cpp')
| -rw-r--r-- | tdeui/kcursor.cpp | 46 |
1 files changed, 23 insertions, 23 deletions
diff --git a/tdeui/kcursor.cpp b/tdeui/kcursor.cpp index 17f523d86..ae0a83935 100644 --- a/tdeui/kcursor.cpp +++ b/tdeui/kcursor.cpp @@ -49,7 +49,7 @@ TQCursor KCursor::handCursor() TDEConfig *config = TDEGlobal::config(); TDEConfigGroupSaver saver( config, "General" ); -#ifndef Q_WS_WIN // this mask doesn't work too well on win32 +#ifndef TQ_WS_WIN // this mask doesn't work too well on win32 if ( config->readEntry("handCursorStyle", "Windows") == "Windows" ) { static const unsigned char HAND_BITS[] = { @@ -74,7 +74,7 @@ TQCursor KCursor::handCursor() hand_cursor->handle(); } else -#endif //! Q_WS_WIN +#endif //! TQ_WS_WIN hand_cursor = new TQCursor(PointingHandCursor); } @@ -145,72 +145,72 @@ TQCursor KCursor::workingCursor() */ TQCursor KCursor::arrowCursor() { - return tqarrowCursor; + return TQt::arrowCursor; } TQCursor KCursor::upArrowCursor() { - return tqupArrowCursor; + return TQt::upArrowCursor; } TQCursor KCursor::crossCursor() { - return tqcrossCursor; + return TQt::crossCursor; } TQCursor KCursor::waitCursor() { - return tqwaitCursor; + return TQt::waitCursor; } TQCursor KCursor::ibeamCursor() { - return tqibeamCursor; + return TQt::ibeamCursor; } TQCursor KCursor::sizeVerCursor() { - return tqsizeVerCursor; + return TQt::sizeVerCursor; } TQCursor KCursor::sizeHorCursor() { - return tqsizeHorCursor; + return TQt::sizeHorCursor; } TQCursor KCursor::sizeBDiagCursor() { - return tqsizeBDiagCursor; + return TQt::sizeBDiagCursor; } TQCursor KCursor::sizeFDiagCursor() { - return tqsizeFDiagCursor; + return TQt::sizeFDiagCursor; } TQCursor KCursor::sizeAllCursor() { - return tqsizeAllCursor; + return TQt::sizeAllCursor; } TQCursor KCursor::blankCursor() { - return tqblankCursor; + return TQt::blankCursor; } TQCursor KCursor::whatsThisCursor() { - return tqwhatsThisCursor; + return TQt::whatsThisCursor; } // auto-hide cursor stuff @@ -250,8 +250,8 @@ KCursorPrivateAutoHideEventFilter::KCursorPrivateAutoHideEventFilter( TQWidget* , m_isOwnCursor( false ) { m_widget->setMouseTracking( true ); - connect( &m_autoHideTimer, TQT_SIGNAL( timeout() ), - this, TQT_SLOT( hideCursor() ) ); + connect( &m_autoHideTimer, TQ_SIGNAL( timeout() ), + this, TQ_SLOT( hideCursor() ) ); } KCursorPrivateAutoHideEventFilter::~KCursorPrivateAutoHideEventFilter() @@ -294,7 +294,7 @@ void KCursorPrivateAutoHideEventFilter::unhideCursor() TQWidget* w = actualWidget(); - if ( w->cursor().shape() != Qt::BlankCursor ) // someone messed with the cursor already + if ( w->cursor().shape() != TQt::BlankCursor ) // someone messed with the cursor already return; if ( m_isOwnCursor ) @@ -308,7 +308,7 @@ TQWidget* KCursorPrivateAutoHideEventFilter::actualWidget() const TQWidget* w = m_widget; // Is w a scrollview ? Call setCursor on the viewport in that case. - TQScrollView * sv = tqt_dynamic_cast<TQScrollView *>( w ); + TQScrollView * sv = dynamic_cast<TQScrollView *>( w ); if ( sv ) w = sv->viewport(); @@ -317,7 +317,7 @@ TQWidget* KCursorPrivateAutoHideEventFilter::actualWidget() const bool KCursorPrivateAutoHideEventFilter::eventFilter( TQObject *o, TQEvent *e ) { - Q_ASSERT( TQT_BASE_OBJECT(o) == TQT_BASE_OBJECT(m_widget) ); + Q_ASSERT( o == m_widget ); switch ( e->type() ) { @@ -392,8 +392,8 @@ void KCursorPrivate::setAutoHideCursor( TQWidget *w, bool enable, bool customEve m_eventFilters.insert( w, filter ); if ( !customEventFilter ) w->installEventFilter( filter ); - connect( w, TQT_SIGNAL( destroyed(TQObject*) ), - this, TQT_SLOT( slotWidgetDestroyed(TQObject*) ) ); + connect( w, TQ_SIGNAL( destroyed(TQObject*) ), + this, TQ_SLOT( slotWidgetDestroyed(TQObject*) ) ); } else { @@ -402,8 +402,8 @@ void KCursorPrivate::setAutoHideCursor( TQWidget *w, bool enable, bool customEve return; w->removeEventFilter( filter ); delete filter; - disconnect( w, TQT_SIGNAL( destroyed(TQObject*) ), - this, TQT_SLOT( slotWidgetDestroyed(TQObject*) ) ); + disconnect( w, TQ_SIGNAL( destroyed(TQObject*) ), + this, TQ_SLOT( slotWidgetDestroyed(TQObject*) ) ); } } |
