diff options
-rw-r--r-- | kooka/ksaneocr.cpp | 2 | ||||
-rw-r--r-- | kuickshow/src/aboutwidget.cpp | 2 | ||||
-rw-r--r-- | kuickshow/src/filewidget.cpp | 2 | ||||
-rw-r--r-- | kuickshow/src/kuickshow.cpp | 6 | ||||
-rw-r--r-- | kview/kviewcanvas/kimagecanvas.cpp | 2 |
5 files changed, 7 insertions, 7 deletions
diff --git a/kooka/ksaneocr.cpp b/kooka/ksaneocr.cpp index a0a3de38..672989b1 100644 --- a/kooka/ksaneocr.cpp +++ b/kooka/ksaneocr.cpp @@ -1127,7 +1127,7 @@ bool KSANEOCR::eventFilter( TQObject *object, TQEvent *event ) { if( event->type() == TQEvent::MouseButtonDblClick ) { - TQMouseEvent *mev = TQT_TQMOUSEEVENT(event); + TQMouseEvent *mev = static_cast<TQMouseEvent*>(event); int x = mev->x(); int y = mev->y(); diff --git a/kuickshow/src/aboutwidget.cpp b/kuickshow/src/aboutwidget.cpp index d45734ba..7fa5e323 100644 --- a/kuickshow/src/aboutwidget.cpp +++ b/kuickshow/src/aboutwidget.cpp @@ -83,7 +83,7 @@ AboutWidget::~AboutWidget() bool AboutWidget::eventFilter( TQObject *o, TQEvent *e ) { if ( e->type() == TQEvent::MouseButtonPress ) { - TQMouseEvent *ev = TQT_TQMOUSEEVENT( e ); + TQMouseEvent *ev = static_cast<TQMouseEvent*>( e ); if ( !m_homepage->geometry().contains( ev->pos() ) ) { deleteLater(); return true; diff --git a/kuickshow/src/filewidget.cpp b/kuickshow/src/filewidget.cpp index 61c75118..379abd84 100644 --- a/kuickshow/src/filewidget.cpp +++ b/kuickshow/src/filewidget.cpp @@ -179,7 +179,7 @@ void FileWidget::findCompletion( const TQString& text ) bool FileWidget::eventFilter( TQObject *o, TQEvent *e ) { if ( e->type() == TQEvent::KeyPress ) { - TQKeyEvent *k = TQT_TQKEYEVENT( e ); + TQKeyEvent *k = static_cast<TQKeyEvent*>( e ); if ( (k->state() & (ControlButton | AltButton)) == 0 ) { int key = k->key(); diff --git a/kuickshow/src/kuickshow.cpp b/kuickshow/src/kuickshow.cpp index 091e2964..7023eb84 100644 --- a/kuickshow/src/kuickshow.cpp +++ b/kuickshow/src/kuickshow.cpp @@ -880,7 +880,7 @@ bool KuickShow::eventFilter( TQObject *o, TQEvent *e ) int eventType = e->type(); TQKeyEvent *k = 0L; if ( eventType == TQEvent::KeyPress ) - k = TQT_TQKEYEVENT( e ); + k = static_cast<TQKeyEvent*>( e ); if ( k ) { if ( TDEStdAccel::quit().contains( KKey( k ) ) ) { @@ -1036,7 +1036,7 @@ bool KuickShow::eventFilter( TQObject *o, TQEvent *e ) // and shows browser when last window closed via doubleclick else if ( eventType == TQEvent::MouseButtonDblClick ) { - TQMouseEvent *ev = TQT_TQMOUSEEVENT( e ); + TQMouseEvent *ev = static_cast<TQMouseEvent*>( e ); if ( ev->button() == TQt::LeftButton ) { if ( s_viewers.count() == 1 ) @@ -1300,7 +1300,7 @@ void KuickShow::slotReplayEvent() DelayedRepeatEvent *e = m_delayedRepeatItem; m_delayedRepeatItem = 0L; // otherwise, eventFilter aborts - eventFilter( TQT_TQOBJECT(e->viewer), TQT_TQEVENT(e->event) ); + eventFilter( TQT_TQOBJECT(e->viewer), static_cast<TQEvent*>(e->event) ); delete e; // ### WORKAROUND for TQIconView bug in TQt <= 3.0.3 at least diff --git a/kview/kviewcanvas/kimagecanvas.cpp b/kview/kviewcanvas/kimagecanvas.cpp index 7a317d9c..e65f0302 100644 --- a/kview/kviewcanvas/kimagecanvas.cpp +++ b/kview/kviewcanvas/kimagecanvas.cpp @@ -327,7 +327,7 @@ TQString KImageCanvas::blendEffectDescription( unsigned int idx ) const bool KImageCanvas::eventFilter( TQObject * obj, TQEvent * ev ) { if( ( obj == m_client || obj == m_oldClient ) && ev->type() == TQEvent::MouseMove ) - mouseMoveEvent( TQT_TQMOUSEEVENT( ev ) ); + mouseMoveEvent( static_cast<TQMouseEvent*>( ev ) ); return TQScrollView::eventFilter( obj, ev ); } |