diff options
Diffstat (limited to 'tqtinterface/qt4/src/kernel/tqaccel.cpp')
-rw-r--r-- | tqtinterface/qt4/src/kernel/tqaccel.cpp | 50 |
1 files changed, 25 insertions, 25 deletions
diff --git a/tqtinterface/qt4/src/kernel/tqaccel.cpp b/tqtinterface/qt4/src/kernel/tqaccel.cpp index 96a3470..0e5d66c 100644 --- a/tqtinterface/qt4/src/kernel/tqaccel.cpp +++ b/tqtinterface/qt4/src/kernel/tqaccel.cpp @@ -1060,9 +1060,9 @@ QT_END_NAMESPACE TQGroupBox, TQLabel (with TQLabel::setBuddy()), TQMenuBar and TQTabBar. Example: \code - TQPushButton p( "&Exit", tqparent ); // automatic shortcut ALT+Key_E - TQPopupMenu *fileMenu = new fileMenu( tqparent ); - fileMenu->insertItem( "Undo", tqparent, TQT_SLOT(undo()), CTRL+Key_Z ); + TQPushButton p( "&Exit", parent ); // automatic shortcut ALT+Key_E + TQPopupMenu *fileMenu = new fileMenu( parent ); + fileMenu->insertItem( "Undo", parent, TQT_SLOT(undo()), CTRL+Key_Z ); \endcode A TQAccel contains a list of accelerator items that can be @@ -1103,7 +1103,7 @@ QT_END_NAMESPACE The function setWhatsThis() specifies a help text that appears when the user presses an accelerator key in What's This mode. - The accelerator will be deleted when \e tqparent is deleted, + The accelerator will be deleted when \e parent is deleted, and will consume relevant key events until then. Please note that the accelerator @@ -1151,7 +1151,7 @@ public: bool enabled; TQGuardedPtr<TQWidget> watch; bool ignorewhatsthis; - TQAccel* tqparent; + TQAccel* parent; void activate( TQAccelItem* item ); void activateAmbiguously( TQAccelItem* item ); @@ -1215,7 +1215,7 @@ bool TQAccelManager::correctSubWindow( TQWidget* w, TQAccelPrivate* d ) { TQWidget* tlw = w->tqtopLevelWidget(); TQWidget* wtlw = d->watch->tqtopLevelWidget(); - /* if we live in a floating dock window, keep our tqparent's + /* if we live in a floating dock window, keep our parent's * accelerators working */ #ifndef TQT_NO_MAINWINDOW if ( tlw->isDialog() && tlw->parentWidget() && ::tqqt_cast<TQDockWindow*>(tlw) ) // [FIXME] Can I safely use the TQT_TQOBJECT macro here? @@ -1503,7 +1503,7 @@ bool TQAccelManager::dispatchAccelEvent( TQWidget* w, TQKeyEvent* e ) #ifndef TQT_NO_STATUSBAR if ( maintqStatusBar && !lastitem->signal && - !(lastaccel->tqparent->tqreceivers( "activatedAmbiguously(int)" )) ) + !(lastaccel->parent->tqreceivers( "activatedAmbiguously(int)" )) ) maintqStatusBar->message( message, 2000 ); #endif lastaccel->activateAmbiguously( lastitem ); @@ -1514,7 +1514,7 @@ bool TQAccelManager::dispatchAccelEvent( TQWidget* w, TQKeyEvent* e ) #ifndef TQT_NO_STATUSBAR if ( maintqStatusBar && !firstitem->signal && - !(firstaccel->tqparent->tqreceivers( "activatedAmbiguously(int)" )) ) + !(firstaccel->parent->tqreceivers( "activatedAmbiguously(int)" )) ) maintqStatusBar->message( message, 2000 ); #endif firstaccel->activateAmbiguously( firstitem ); @@ -1524,7 +1524,7 @@ bool TQAccelManager::dispatchAccelEvent( TQWidget* w, TQKeyEvent* e ) } TQAccelPrivate::TQAccelPrivate( TQAccel* p ) - : tqparent( p ) + : parent( p ) { TQAccelManager::self()->registerAccel( this ); aitems.setAutoDelete( TRUE ); @@ -1553,55 +1553,55 @@ static TQAccelItem *find_key( TQAccelList &list, const TQKeySequence &key ) } /*! - Constructs a TQAccel object called \a name, with tqparent \a tqparent. - The accelerator operates on \a tqparent. + Constructs a TQAccel object called \a name, with parent \a parent. + The accelerator operates on \a parent. */ -TQAccel::TQAccel( TQWidget *tqparent, const char *name ) - : TQObject( TQT_TQOBJECT(tqparent), name ) +TQAccel::TQAccel( TQWidget *parent, const char *name ) + : TQObject( TQT_TQOBJECT(parent), name ) { d = new TQAccelPrivate( this ); d->enabled = TRUE; - d->watch = tqparent; + d->watch = parent; #if defined(TQT_CHECK_NULL) if ( !d->watch ) - qWarning( "TQAccel: An accelerator must have a tqparent or a watch widget" ); + qWarning( "TQAccel: An accelerator must have a parent or a watch widget" ); #endif } /*! Constructs a TQAccel object called \a name, that operates on \a - watch, and is a child of \a tqparent. + watch, and is a child of \a parent. This constructor is not needed for normal application programming. */ -TQAccel::TQAccel( TQWidget* watch, TQObject *tqparent, const char *name ) - : TQObject( tqparent, name ) +TQAccel::TQAccel( TQWidget* watch, TQObject *parent, const char *name ) + : TQObject( parent, name ) { d = new TQAccelPrivate( this ); d->enabled = TRUE; d->watch = watch; #if defined(TQT_CHECK_NULL) if ( !d->watch ) - qWarning( "TQAccel: An accelerator must have a tqparent or a watch widget" ); + qWarning( "TQAccel: An accelerator must have a parent or a watch widget" ); #endif } /*! Constructs a TQAccel object called \a name, that operates on \a - watch, and is a child of \a tqparent. + watch, and is a child of \a parent. This constructor is not needed for normal application programming. */ -TQAccel::TQAccel( TQWidget* watch, TQWidget *tqparent, const char *name ) - : TQObject( TQT_TQOBJECT(tqparent), name ) +TQAccel::TQAccel( TQWidget* watch, TQWidget *parent, const char *name ) + : TQObject( TQT_TQOBJECT(parent), name ) { d = new TQAccelPrivate( this ); d->enabled = TRUE; d->watch = watch; #if defined(TQT_CHECK_NULL) if ( !d->watch ) - qWarning( "TQAccel: An accelerator must have a tqparent or a watch widget" ); + qWarning( "TQAccel: An accelerator must have a parent or a watch widget" ); #endif } @@ -1843,7 +1843,7 @@ void TQAccelPrivate::activate( TQAccelItem* item ) if ( item->signal ) item->signal->activate(); else - emit tqparent->activated( item->id ); + emit parent->activated( item->id ); } void TQAccelPrivate::activateAmbiguously( TQAccelItem* item ) @@ -1851,7 +1851,7 @@ void TQAccelPrivate::activateAmbiguously( TQAccelItem* item ) if ( item->signal ) item->signal->activate(); else - emit tqparent->activatedAmbiguously( item->id ); + emit parent->activatedAmbiguously( item->id ); } |