diff options
Diffstat (limited to 'src/kernel/qaccel.cpp')
-rw-r--r-- | src/kernel/qaccel.cpp | 22 |
1 files changed, 11 insertions, 11 deletions
diff --git a/src/kernel/qaccel.cpp b/src/kernel/qaccel.cpp index 3acc3da57..a5c344ed4 100644 --- a/src/kernel/qaccel.cpp +++ b/src/kernel/qaccel.cpp @@ -40,7 +40,7 @@ #include "ntqaccel.h" -#ifndef QT_NO_ACCEL +#ifndef TQT_NO_ACCEL #include "ntqsignal.h" #include "ntqapplication.h" @@ -228,7 +228,7 @@ bool TQAccelManager::correctSubWindow( TQWidget* w, TQAccelPrivate* d ) { /* if we live in a floating dock window, keep our parent's * accelerators working */ -#ifndef QT_NO_MAINWINDOW +#ifndef TQT_NO_MAINWINDOW if ( tlw->isDialog() && tlw->parentWidget() && ::tqt_cast<TQDockWindow*>(tlw) ) return tlw->parentWidget()->topLevelWidget() == wtlw; @@ -391,7 +391,7 @@ bool TQAccelManager::tryComposeUnicode( TQWidget* w, TQKeyEvent* e ) */ bool TQAccelManager::dispatchAccelEvent( TQWidget* w, TQKeyEvent* e ) { -#ifndef QT_NO_STATUSBAR +#ifndef TQT_NO_STATUSBAR // Needs to be declared and used here because of "goto doclash" TQStatusBar* mainStatusBar = 0; #endif @@ -459,12 +459,12 @@ bool TQAccelManager::dispatchAccelEvent( TQWidget* w, TQKeyEvent* e ) pe = TQKeyEvent( TQEvent::Accel, pe.key(), pe.ascii(), pe.state()&~TQt::ShiftButton, pe.text() ); } while ( hasShift-- && !matchFound && !identicalDisabled ); -#ifndef QT_NO_STATUSBAR +#ifndef TQT_NO_STATUSBAR mainStatusBar = (TQStatusBar*) w->topLevelWidget()->child( 0, "TQStatusBar" ); #endif if ( n < 0 ) { // no match found currentState = partial.count() ? PartialMatch : NoMatch; -#ifndef QT_NO_STATUSBAR +#ifndef TQT_NO_STATUSBAR // Only display message if we are, or were, in a partial match if ( mainStatusBar && (PartialMatch == currentState || intermediate.count() ) ) { if ( currentState == TQt::PartialMatch ) { @@ -489,7 +489,7 @@ bool TQAccelManager::dispatchAccelEvent( TQWidget* w, TQKeyEvent* e ) return eatKey; } else if ( n == 0 ) { // found exactly one match clash = -1; // reset -#ifndef QT_NO_STATUSBAR +#ifndef TQT_NO_STATUSBAR if ( currentState == TQt::PartialMatch && mainStatusBar ) mainStatusBar->clear(); #endif @@ -501,7 +501,7 @@ bool TQAccelManager::dispatchAccelEvent( TQWidget* w, TQKeyEvent* e ) } doclash: // found more than one match -#ifndef QT_NO_STATUSBAR +#ifndef TQT_NO_STATUSBAR if ( !mainStatusBar ) // if "goto doclash", we need to get statusbar again. mainStatusBar = (TQStatusBar*) w->topLevelWidget()->child( 0, "TQStatusBar" ); #endif @@ -511,7 +511,7 @@ bool TQAccelManager::dispatchAccelEvent( TQWidget* w, TQKeyEvent* e ) intermediate = TQKeySequence(); currentState = TQt::NoMatch; // Free sequence keylock clash++; -#ifndef QT_NO_STATUSBAR +#ifndef TQT_NO_STATUSBAR if ( mainStatusBar && !lastitem->signal && !(lastaccel->parent->receivers( "activatedAmbiguously(int)" )) ) @@ -522,7 +522,7 @@ bool TQAccelManager::dispatchAccelEvent( TQWidget* w, TQKeyEvent* e ) intermediate = TQKeySequence(); currentState = TQt::NoMatch; // Free sequence keylock clash = 0; -#ifndef QT_NO_STATUSBAR +#ifndef TQT_NO_STATUSBAR if ( mainStatusBar && !firstitem->signal && !(firstaccel->parent->receivers( "activatedAmbiguously(int)" )) ) @@ -827,7 +827,7 @@ bool TQAccel::disconnectItem( int id, const TQObject *receiver, void TQAccelPrivate::activate( TQAccelItem* item ) { -#ifndef QT_NO_WHATSTHIS +#ifndef TQT_NO_WHATSTHIS if ( TQWhatsThis::inWhatsThisMode() && !ignorewhatsthis ) { TQWhatsThis::leaveWhatsThisMode( item->whatsthis ); return; @@ -1086,4 +1086,4 @@ to help. Ask them for ISBN 1859121047. void TQAccel::repairEventFilter() {} /*! \obsolete serves no purpose anymore */ bool TQAccel::eventFilter( TQObject *, TQEvent * ) { return FALSE; } -#endif // QT_NO_ACCEL +#endif // TQT_NO_ACCEL |