summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMichele Calgaro <michele.calgaro@yahoo.it>2023-11-30 20:43:39 +0900
committerMichele Calgaro <michele.calgaro@yahoo.it>2023-11-30 23:44:29 +0900
commitf19fa530c0bcc77ae5a381999b5220371cba4266 (patch)
tree869c36cadb585ab53a51a3f85a250a75e4803aac
parentdb72394332b7887ebe3f4402179c5772452dabcc (diff)
downloadkrusader-f19fa530c0bcc77ae5a381999b5220371cba4266.tar.gz
krusader-f19fa530c0bcc77ae5a381999b5220371cba4266.zip
Replace 'Event' #define strings
Signed-off-by: Michele Calgaro <michele.calgaro@yahoo.it> (cherry picked from commit d93322c49edf4a6de06e230b18051e5859444d7c)
-rw-r--r--krusader/BookMan/krbookmarkhandler.cpp4
-rw-r--r--krusader/GUI/mediabutton.cpp2
2 files changed, 3 insertions, 3 deletions
diff --git a/krusader/BookMan/krbookmarkhandler.cpp b/krusader/BookMan/krbookmarkhandler.cpp
index ac5ffdd..8b5b88a 100644
--- a/krusader/BookMan/krbookmarkhandler.cpp
+++ b/krusader/BookMan/krbookmarkhandler.cpp
@@ -431,11 +431,11 @@ void KrBookmarkHandler::bookmarksChanged(const TQString&, const TQString&) {
bool KrBookmarkHandler::eventFilter( TQObject *obj, TQEvent *ev ) {
if (ev->type() == TQEvent::MouseButtonRelease) {
- switch (TQT_TQMOUSEEVENT(ev)->button()) {
+ switch (static_cast<TQMouseEvent*>(ev)->button()) {
case TQt::RightButton:
_middleClick = false;
if( obj->inherits( "TQPopupMenu" ) ) {
- int id = static_cast<TQPopupMenu*>(TQT_TQWIDGET(obj))->idAt( TQT_TQMOUSEEVENT(ev)->pos() );
+ int id = static_cast<TQPopupMenu*>(TQT_TQWIDGET(obj))->idAt( static_cast<TQMouseEvent*>(ev)->pos() );
if( obj == _mainBookmarkPopup && _specialBookmarkIDs.contains( id ) ) {
rightClickOnSpecialBookmark();
diff --git a/krusader/GUI/mediabutton.cpp b/krusader/GUI/mediabutton.cpp
index 63d6abd..2b0f7a9 100644
--- a/krusader/GUI/mediabutton.cpp
+++ b/krusader/GUI/mediabutton.cpp
@@ -502,7 +502,7 @@ void MediaButton::addMountPoint( KMountPoint * mp, bool isMounted ) {
bool MediaButton::eventFilter( TQObject *o, TQEvent *e ) {
if( o == popupMenu ) {
if( e->type() == TQEvent::MouseButtonPress || e->type() == TQEvent::MouseButtonRelease ) {
- TQMouseEvent *m = TQT_TQMOUSEEVENT(e);
+ TQMouseEvent *m = static_cast<TQMouseEvent*>(e);
if( m->button() == TQt::RightButton ) {
if( e->type() == TQEvent::MouseButtonPress ) {
int id = popupMenu->idAt( m->pos() );