diff options
author | Michele Calgaro <michele.calgaro@yahoo.it> | 2023-11-30 21:31:38 +0900 |
---|---|---|
committer | Michele Calgaro <michele.calgaro@yahoo.it> | 2023-11-30 21:31:38 +0900 |
commit | 99f7cd1932291ac8fe822b13cd1077da6433f279 (patch) | |
tree | 1e7caf4dce2a498cc5d008aa3e04fef242679fc0 | |
parent | 8bba786d188dd896336797f05e0a452e1a01d52b (diff) | |
download | tdeutils-99f7cd1932291ac8fe822b13cd1077da6433f279.tar.gz tdeutils-99f7cd1932291ac8fe822b13cd1077da6433f279.zip |
Replace 'Event' #define strings
Signed-off-by: Michele Calgaro <michele.calgaro@yahoo.it>
-rw-r--r-- | kregexpeditor/textwidget.cpp | 4 | ||||
-rw-r--r-- | ksim/monitors/filesystem/filesystemwidget.cpp | 2 | ||||
-rw-r--r-- | ksim/monitors/net/ksimnet.cpp | 2 |
3 files changed, 4 insertions, 4 deletions
diff --git a/kregexpeditor/textwidget.cpp b/kregexpeditor/textwidget.cpp index 5de0dee..35af60b 100644 --- a/kregexpeditor/textwidget.cpp +++ b/kregexpeditor/textwidget.cpp @@ -114,7 +114,7 @@ bool TextWidget::eventFilter( TQObject*, TQEvent* event) if ( event->type() == TQEvent::MouseButtonRelease ) { if ( _editorWindow->isInserting() ) { if ( acceptWidgetInsert( _editorWindow->insertType() ) ) { - mouseReleaseEvent( TQT_TQMOUSEEVENT(event) ); + mouseReleaseEvent( static_cast<TQMouseEvent*>(event) ); } return true; } @@ -124,7 +124,7 @@ bool TextWidget::eventFilter( TQObject*, TQEvent* event) return true; } else if ( isSelected() ) { - TQMouseEvent* e = TQT_TQMOUSEEVENT( event ); + TQMouseEvent* e = static_cast<TQMouseEvent*>( event ); TQMouseEvent ev( event->type(), mapTo(_editorWindow, e->pos()), e->button(), e->state()); TQApplication::sendEvent( _editorWindow, &ev ); diff --git a/ksim/monitors/filesystem/filesystemwidget.cpp b/ksim/monitors/filesystem/filesystemwidget.cpp index b60ba43..4a63e04 100644 --- a/ksim/monitors/filesystem/filesystemwidget.cpp +++ b/ksim/monitors/filesystem/filesystemwidget.cpp @@ -151,7 +151,7 @@ bool FilesystemWidget::eventFilter(TQObject *o, TQEvent *e) if (o == progressBar && e->type() == TQEvent::MouseButtonPress) { - switch(TQT_TQMOUSEEVENT(e)->button()) { + switch(static_cast<TQMouseEvent*>(e)->button()) { case TQt::RightButton: showMenu(i); break; diff --git a/ksim/monitors/net/ksimnet.cpp b/ksim/monitors/net/ksimnet.cpp index d686a10..e72f8ea 100644 --- a/ksim/monitors/net/ksimnet.cpp +++ b/ksim/monitors/net/ksimnet.cpp @@ -642,7 +642,7 @@ bool NetView::eventFilter( TQObject * o, TQEvent * e ) if ( e->type() == TQEvent::MouseButtonPress ) { - if ( TQT_TQMOUSEEVENT( e )->button() == TQt::RightButton ) + if ( static_cast<TQMouseEvent*>( e )->button() == TQt::RightButton ) { showMenu(i); } |