diff options
author | Michele Calgaro <[email protected]> | 2023-11-26 02:19:55 +0900 |
---|---|---|
committer | Michele Calgaro <[email protected]> | 2023-11-26 02:19:55 +0900 |
commit | 08147c8aedded5fced6eb4cfe7ba918996d3f481 (patch) | |
tree | e5dc3ad7d6950a2a2f71635b1ef5a894f8bdc7d3 /style/shortcuthandler.cpp | |
parent | e2b48e1ca33b5b67426d38a51af78ab0d4c1b7cf (diff) | |
download | tde-style-qtcurve-08147c8aedded5fced6eb4cfe7ba918996d3f481.tar.gz tde-style-qtcurve-08147c8aedded5fced6eb4cfe7ba918996d3f481.zip |
Replaced various '#define' with actual strings - part 4
Signed-off-by: Michele Calgaro <[email protected]>
Diffstat (limited to 'style/shortcuthandler.cpp')
-rw-r--r-- | style/shortcuthandler.cpp | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/style/shortcuthandler.cpp b/style/shortcuthandler.cpp index b880a89..7407366 100644 --- a/style/shortcuthandler.cpp +++ b/style/shortcuthandler.cpp @@ -41,7 +41,7 @@ bool ShortcutHandler::hasSeenAlt(const TQWidget *widget) const if(widget && !widget->isEnabled()) return false; - if(::tqqt_cast<const TQPopupMenu *>(widget)) + if(::tqt_cast<const TQPopupMenu *>(widget)) return itsOpenMenus.count() && itsOpenMenus.last()==widget; else return itsOpenMenus.isEmpty() && itsSeenAlt.contains((TQWidget *)(widget->topLevelWidget())); @@ -94,7 +94,7 @@ bool ShortcutHandler::eventFilter(TQObject *o, TQEvent *e) if (!o->isWidgetType()) return TQObject::eventFilter(o, e); - TQWidget *widget = ::tqqt_cast<TQWidget*>(o); + TQWidget *widget = ::tqt_cast<TQWidget*>(o); switch(e->type()) { case TQEvent::KeyPress: @@ -102,7 +102,7 @@ bool ShortcutHandler::eventFilter(TQObject *o, TQEvent *e) { itsAltDown = true; - if(::tqqt_cast<TQPopupMenu *>(widget)) + if(::tqt_cast<TQPopupMenu *>(widget)) { setSeenAlt(widget); updateWidget(widget); @@ -145,7 +145,7 @@ bool ShortcutHandler::eventFilter(TQObject *o, TQEvent *e) } break; case TQEvent::Show: - if(::tqqt_cast<TQPopupMenu *>(widget)) + if(::tqt_cast<TQPopupMenu *>(widget)) { TQWidget *prev=itsOpenMenus.count() ? itsOpenMenus.last() : 0L; itsOpenMenus.append(widget); @@ -155,7 +155,7 @@ bool ShortcutHandler::eventFilter(TQObject *o, TQEvent *e) } break; case TQEvent::Hide: - if(::tqqt_cast<TQPopupMenu *>(widget)) + if(::tqt_cast<TQPopupMenu *>(widget)) { itsSeenAlt.remove(widget); itsUpdated.remove(widget); |