diff options
author | Michele Calgaro <michele.calgaro@yahoo.it> | 2023-12-27 19:25:43 +0900 |
---|---|---|
committer | Michele Calgaro <michele.calgaro@yahoo.it> | 2023-12-27 19:25:43 +0900 |
commit | fb401a891f1b426e9419c0cb16403df407138611 (patch) | |
tree | 045b51949b3140039e37d898d8b0513016a86bea /doc/html/ntqaccel.html | |
parent | a9d178f1000475ba1727ffe123a2c54585488c01 (diff) | |
download | tqt3-fb401a891f1b426e9419c0cb16403df407138611.tar.gz tqt3-fb401a891f1b426e9419c0cb16403df407138611.zip |
Rename METHOD, SIGNAL, SLOT to TQ_METHOD, TQ_SIGNAL, TQ_SLOT
Signed-off-by: Michele Calgaro <michele.calgaro@yahoo.it>
Diffstat (limited to 'doc/html/ntqaccel.html')
-rw-r--r-- | doc/html/ntqaccel.html | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/doc/html/ntqaccel.html b/doc/html/ntqaccel.html index 9c8f02f4b..b0d2c23ce 100644 --- a/doc/html/ntqaccel.html +++ b/doc/html/ntqaccel.html @@ -92,7 +92,7 @@ Example: <pre> <a href="ntqpushbutton.html">TQPushButton</a> p( "&Exit", parent ); // automatic shortcut ALT+Key_E <a href="ntqpopupmenu.html">TQPopupMenu</a> *fileMenu = new fileMenu( parent ); - fileMenu-><a href="ntqmenudata.html#insertItem">insertItem</a>( "Undo", parent, SLOT(undo()), CTRL+Key_Z ); + fileMenu-><a href="ntqmenudata.html#insertItem">insertItem</a>( "Undo", parent, TQ_SLOT(undo()), CTRL+Key_Z ); </pre> <p> A TQAccel contains a list of accelerator items that can be @@ -138,7 +138,7 @@ combination. TQAccel *a = new TQAccel( myWindow ); // create accels for myWindow a-><a href="#connectItem">connectItem</a>( a-><a href="#insertItem">insertItem</a>(Key_P+CTRL), // adds Ctrl+P accelerator myWindow, // connected to myWindow's - SLOT(printDoc()) ); // printDoc() slot + TQ_SLOT(printDoc()) ); // printDoc() slot </pre> <p> <p>See also <a href="qkeyevent.html">TQKeyEvent</a>, <a href="ntqwidget.html#keyPressEvent">TQWidget::keyPressEvent</a>(), <a href="ntqmenudata.html#setAccel">TQMenuData::setAccel</a>(), <a href="ntqbutton.html#accel-prop">TQButton::accel</a>, <a href="ntqlabel.html#setBuddy">TQLabel::setBuddy</a>(), <a href="ntqkeysequence.html">TQKeySequence</a>, <a href="guibooks.html#fowler">GUI Design Handbook: Keyboard Shortcuts</a>, and <a href="misc.html">Miscellaneous Classes</a>. @@ -180,7 +180,7 @@ Removes all accelerator items. </h3> Connects the accelerator item <em>id</em> to the slot <em>member</em> of <em>receiver</em>. <p> <pre> - a->connectItem( 201, mainView, SLOT(quit()) ); + a->connectItem( 201, mainView, TQ_SLOT(quit()) ); </pre> <p> Of course, you can also send a signal as <em>member</em>. @@ -307,7 +307,7 @@ if <em>s</em> is not recognized. translations: <p> <pre> <a href="ntqpopupmenu.html">TQPopupMenu</a> *file = new <a href="ntqpopupmenu.html">TQPopupMenu</a>( this ); - file-><a href="ntqmenudata.html#insertItem">insertItem</a>( p1, tr("&Open..."), this, SLOT(open()), + file-><a href="ntqmenudata.html#insertItem">insertItem</a>( p1, tr("&Open..."), this, TQ_SLOT(open()), TQAccel::<a href="#stringToKey">stringToKey</a>(<a href="ntqobject.html#tr">tr</a>("Ctrl+O", "File|Open")) ); </pre> |