diff options
Diffstat (limited to 'src/kernel/qaccel.cpp')
-rw-r--r-- | src/kernel/qaccel.cpp | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/src/kernel/qaccel.cpp b/src/kernel/qaccel.cpp index ffd253934..76181cca9 100644 --- a/src/kernel/qaccel.cpp +++ b/src/kernel/qaccel.cpp @@ -73,7 +73,7 @@ \code TQPushButton p( "&Exit", parent ); // automatic shortcut ALT+Key_E TQPopupMenu *fileMenu = new fileMenu( parent ); - fileMenu->insertItem( "Undo", parent, SLOT(undo()), CTRL+Key_Z ); + fileMenu->insertItem( "Undo", parent, TQ_SLOT(undo()), CTRL+Key_Z ); \endcode A TQAccel contains a list of accelerator items that can be @@ -131,7 +131,7 @@ TQAccel *a = new TQAccel( myWindow ); // create accels for myWindow a->connectItem( a->insertItem(Key_P+CTRL), // adds Ctrl+P accelerator myWindow, // connected to myWindow's - SLOT(printDoc()) ); // printDoc() slot + TQ_SLOT(printDoc()) ); // printDoc() slot \endcode \sa TQKeyEvent TQWidget::keyPressEvent() TQMenuData::setAccel() @@ -781,7 +781,7 @@ void TQAccel::setItemEnabled( int id, bool enable ) receiver. \code - a->connectItem( 201, mainView, SLOT(quit()) ); + a->connectItem( 201, mainView, TQ_SLOT(quit()) ); \endcode Of course, you can also send a signal as \a member. @@ -917,7 +917,7 @@ TQString TQAccel::keyToString( TQKeySequence k ) \code TQPopupMenu *file = new TQPopupMenu( this ); - file->insertItem( p1, tr("&Open..."), this, SLOT(open()), + file->insertItem( p1, tr("&Open..."), this, TQ_SLOT(open()), TQAccel::stringToKey(tr("Ctrl+O", "File|Open")) ); \endcode |