diff options
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); |