diff options
Diffstat (limited to 'doc/html/ntqpopupmenu.html')
-rw-r--r-- | doc/html/ntqpopupmenu.html | 24 |
1 files changed, 12 insertions, 12 deletions
diff --git a/doc/html/ntqpopupmenu.html b/doc/html/ntqpopupmenu.html index 0d48975bd..e5c833660 100644 --- a/doc/html/ntqpopupmenu.html +++ b/doc/html/ntqpopupmenu.html @@ -185,7 +185,7 @@ original menu contains a custom widget item, this item is omitted. Constructs a popup menu called <em>name</em> with parent <em>parent</em>. <p> Although a popup menu is always a top-level widget, if a parent is passed the popup menu will be deleted when that parent is -destroyed (as with any other <a href="ntqobject.html">TQObject</a>). +destroyed (as with any other <a href="tqobject.html">TQObject</a>). <h3 class=fn><a name="~TQPopupMenu"></a>TQPopupMenu::~TQPopupMenu () </h3> @@ -268,7 +268,7 @@ example, on Windows it will use multiple columns). <p> This functions returns the number of columns necessary. <p> <p>See also <a href="ntqwidget.html#sizeHint-prop">sizeHint</a>. -<h3 class=fn>bool <a name="connectItem"></a>TQMenuData::connectItem ( int id, const <a href="ntqobject.html">TQObject</a> * receiver, const char * member ) +<h3 class=fn>bool <a name="connectItem"></a>TQMenuData::connectItem ( int id, const <a href="tqobject.html">TQObject</a> * receiver, const char * member ) </h3> Connects the menu item with identifier <em>id</em> to <em>receiver</em>'s <em>member</em> slot or signal. <p> The receiver's slot (or signal) is activated when the menu item is @@ -276,7 +276,7 @@ activated. <p> <p>See also <a href="ntqmenudata.html#disconnectItem">disconnectItem</a>() and <a href="ntqmenudata.html#setItemParameter">setItemParameter</a>(). <p>Example: <a href="menu-example.html#x1868">menu/menu.cpp</a>. -<h3 class=fn>bool <a name="disconnectItem"></a>TQMenuData::disconnectItem ( int id, const <a href="ntqobject.html">TQObject</a> * receiver, const char * member ) +<h3 class=fn>bool <a name="disconnectItem"></a>TQMenuData::disconnectItem ( int id, const <a href="tqobject.html">TQObject</a> * receiver, const char * member ) </h3> Disconnects the <em>receiver</em>'s <em>member</em> from the menu item with identifier <em>id</em>. @@ -374,7 +374,7 @@ This is an overloaded member function, provided for convenience. It behaves esse <p> Returns the id of the item at <em>pos</em>, or -1 if there is no item there or if it is a separator. -<h3 class=fn>int <a name="insertItem"></a>TQMenuData::insertItem ( const <a href="ntqstring.html">TQString</a> & text, const <a href="ntqobject.html">TQObject</a> * receiver, const char * member, const <a href="ntqkeysequence.html">TQKeySequence</a> & accel = 0, int id = -1, int index = -1 ) +<h3 class=fn>int <a name="insertItem"></a>TQMenuData::insertItem ( const <a href="ntqstring.html">TQString</a> & text, const <a href="tqobject.html">TQObject</a> * receiver, const char * member, const <a href="ntqkeysequence.html">TQKeySequence</a> & accel = 0, int id = -1, int index = -1 ) </h3> The family of <a href="ntqmenudata.html#insertItem">insertItem</a>() functions inserts menu items into a popup menu or a menu bar. @@ -401,12 +401,12 @@ connects it to the slot <em>member</em> in the object <em>receiver</em>. <p> Not all insert functions take an object/slot parameter or an accelerator key. Use <a href="ntqmenudata.html#connectItem">connectItem</a>() and <a href="ntqmenudata.html#setAccel">setAccel</a>() on those items. -<p> If you need to translate accelerators, use <a href="ntqobject.html#tr">tr</a>() with the text and +<p> If you need to translate accelerators, use <a href="tqobject.html#tr">tr</a>() with the text and accelerator. (For translations use a string <a href="ntqkeysequence.html">key sequence</a>.): <pre> - fileMenu->insertItem( <a href="ntqobject.html#tr">tr</a>("Open"), myView, TQ_SLOT(open()), - <a href="ntqobject.html#tr">tr</a>("Ctrl+O") ); + fileMenu->insertItem( <a href="tqobject.html#tr">tr</a>("Open"), myView, TQ_SLOT(open()), + <a href="tqobject.html#tr">tr</a>("Ctrl+O") ); </pre> <p> In the example above, pressing Ctrl+O or selecting "Open" from the @@ -441,7 +441,7 @@ version. <p> <p>See also <a href="ntqmenudata.html#removeItem">removeItem</a>(), <a href="ntqmenudata.html#changeItem">changeItem</a>(), <a href="ntqmenudata.html#setAccel">setAccel</a>(), <a href="ntqmenudata.html#connectItem">connectItem</a>(), <a href="ntqaccel.html">TQAccel</a>, and <a href="qnamespace-h.html">ntqnamespace.h</a>. <p>Examples: <a href="addressbook-example.html#x569">addressbook/mainwindow.cpp</a>, <a href="canvas-example.html#x2936">canvas/canvas.cpp</a>, <a href="menu-example.html#x1869">menu/menu.cpp</a>, <a href="qwerty-example.html#x371">qwerty/qwerty.cpp</a>, <a href="scrollview-example.html#x634">scrollview/scrollview.cpp</a>, <a href="showimg-example.html#x1327">showimg/showimg.cpp</a>, and <a href="sound-example.html#x2810">sound/sound.cpp</a>. -<h3 class=fn>int <a name="insertItem-2"></a>TQMenuData::insertItem ( const <a href="ntqiconset.html">TQIconSet</a> & icon, const <a href="ntqstring.html">TQString</a> & text, const <a href="ntqobject.html">TQObject</a> * receiver, const char * member, const <a href="ntqkeysequence.html">TQKeySequence</a> & accel = 0, int id = -1, int index = -1 ) +<h3 class=fn>int <a name="insertItem-2"></a>TQMenuData::insertItem ( const <a href="ntqiconset.html">TQIconSet</a> & icon, const <a href="ntqstring.html">TQString</a> & text, const <a href="tqobject.html">TQObject</a> * receiver, const char * member, const <a href="ntqkeysequence.html">TQKeySequence</a> & accel = 0, int id = -1, int index = -1 ) </h3> This is an overloaded member function, provided for convenience. It behaves essentially like the above function. <p> Inserts a menu item with icon <em>icon</em>, text <em>text</em>, accelerator @@ -451,7 +451,7 @@ icon will be displayed to the left of the text in the item. <p> Returns the allocated <a href="ntqmenudata.html#menu-identifier">menu identifier</a> number (<em>id</em> if <em>id</em> >= 0). <p> <p>See also <a href="ntqmenudata.html#removeItem">removeItem</a>(), <a href="ntqmenudata.html#changeItem">changeItem</a>(), <a href="ntqmenudata.html#setAccel">setAccel</a>(), <a href="ntqmenudata.html#connectItem">connectItem</a>(), <a href="ntqaccel.html">TQAccel</a>, and <a href="qnamespace-h.html">ntqnamespace.h</a>. -<h3 class=fn>int <a name="insertItem-3"></a>TQMenuData::insertItem ( const <a href="ntqpixmap.html">TQPixmap</a> & pixmap, const <a href="ntqobject.html">TQObject</a> * receiver, const char * member, const <a href="ntqkeysequence.html">TQKeySequence</a> & accel = 0, int id = -1, int index = -1 ) +<h3 class=fn>int <a name="insertItem-3"></a>TQMenuData::insertItem ( const <a href="ntqpixmap.html">TQPixmap</a> & pixmap, const <a href="tqobject.html">TQObject</a> * receiver, const char * member, const <a href="ntqkeysequence.html">TQKeySequence</a> & accel = 0, int id = -1, int index = -1 ) </h3> This is an overloaded member function, provided for convenience. It behaves essentially like the above function. <p> Inserts a menu item with pixmap <em>pixmap</em>, accelerator <em>accel</em>, @@ -463,7 +463,7 @@ should provide a mask (see <a href="ntqpixmap.html#mask">TQPixmap::mask</a>()). <p> Returns the allocated <a href="ntqmenudata.html#menu-identifier">menu identifier</a> number (<em>id</em> if <em>id</em> >= 0). <p> <p>See also <a href="ntqmenudata.html#removeItem">removeItem</a>(), <a href="ntqmenudata.html#changeItem">changeItem</a>(), <a href="ntqmenudata.html#setAccel">setAccel</a>(), and <a href="ntqmenudata.html#connectItem">connectItem</a>(). -<h3 class=fn>int <a name="insertItem-4"></a>TQMenuData::insertItem ( const <a href="ntqiconset.html">TQIconSet</a> & icon, const <a href="ntqpixmap.html">TQPixmap</a> & pixmap, const <a href="ntqobject.html">TQObject</a> * receiver, const char * member, const <a href="ntqkeysequence.html">TQKeySequence</a> & accel = 0, int id = -1, int index = -1 ) +<h3 class=fn>int <a name="insertItem-4"></a>TQMenuData::insertItem ( const <a href="ntqiconset.html">TQIconSet</a> & icon, const <a href="ntqpixmap.html">TQPixmap</a> & pixmap, const <a href="tqobject.html">TQObject</a> * receiver, const char * member, const <a href="ntqkeysequence.html">TQKeySequence</a> & accel = 0, int id = -1, int index = -1 ) </h3> This is an overloaded member function, provided for convenience. It behaves essentially like the above function. <p> Inserts a menu item with icon <em>icon</em>, pixmap <em>pixmap</em>, @@ -739,9 +739,9 @@ object. mainMenu-><a href="ntqmenudata.html#insertItem">insertItem</a>( "File", fileMenu ); // add the file menu </pre> -<p> If you need to translate accelerators, use <a href="ntqobject.html#tr">tr</a>() with a string: +<p> If you need to translate accelerators, use <a href="tqobject.html#tr">tr</a>() with a string: <pre> - fileMenu->setAccel( <a href="ntqobject.html#tr">tr</a>("Ctrl+O"), 67 ); + fileMenu->setAccel( <a href="tqobject.html#tr">tr</a>("Ctrl+O"), 67 ); </pre> <p> You can also specify the accelerator in the <a href="ntqmenudata.html#insertItem">insertItem</a>() function. |