diff options
author | Michele Calgaro <michele.calgaro@yahoo.it> | 2023-11-30 21:30:44 +0900 |
---|---|---|
committer | Michele Calgaro <michele.calgaro@yahoo.it> | 2023-12-02 22:45:35 +0900 |
commit | 556d90cb570e370385fcf5515e1a6e0532822d82 (patch) | |
tree | 679cdf46e3b80698af2cddef09f74079aec59738 /kuickshow/src | |
parent | 7ec27f89c574376989e3199731debf8a01cd2919 (diff) | |
download | tdegraphics-556d90cb570e370385fcf5515e1a6e0532822d82.tar.gz tdegraphics-556d90cb570e370385fcf5515e1a6e0532822d82.zip |
Replace 'Event' #define strings
Signed-off-by: Michele Calgaro <michele.calgaro@yahoo.it>
(cherry picked from commit c3aa1feaab76f93138ae16090af4b2acb4dcc147)
Diffstat (limited to 'kuickshow/src')
-rw-r--r-- | kuickshow/src/aboutwidget.cpp | 2 | ||||
-rw-r--r-- | kuickshow/src/filewidget.cpp | 2 | ||||
-rw-r--r-- | kuickshow/src/kuickshow.cpp | 6 |
3 files changed, 5 insertions, 5 deletions
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 |