diff options
Diffstat (limited to 'doc/html/tqmenudata.html')
-rw-r--r-- | doc/html/tqmenudata.html | 14 |
1 files changed, 7 insertions, 7 deletions
diff --git a/doc/html/tqmenudata.html b/doc/html/tqmenudata.html index cb78fabd4..f24003be7 100644 --- a/doc/html/tqmenudata.html +++ b/doc/html/tqmenudata.html @@ -141,7 +141,7 @@ Constructs an empty menu data list. Removes all menu items and disconnects any signals that have been connected. -<h3 class=fn><a href="ntqkeysequence.html">TQKeySequence</a> <a name="accel"></a>TQMenuData::accel ( int id ) const +<h3 class=fn><a href="tqkeysequence.html">TQKeySequence</a> <a name="accel"></a>TQMenuData::accel ( int id ) const </h3> Returns the accelerator key that has been defined for the menu item <em>id</em>, or 0 if it has no accelerator key or if there is no @@ -272,7 +272,7 @@ there is no item with this identifier. <p> <p>See also <a href="#idAt">idAt</a>() and <a href="#findItem">findItem</a>(). <p>Example: <a href="scrollview-example.html#x633">scrollview/scrollview.cpp</a>. -<h3 class=fn>int <a name="insertItem"></a>TQMenuData::insertItem ( const <a href="tqstring.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 class=fn>int <a name="insertItem"></a>TQMenuData::insertItem ( const <a href="tqstring.html">TQString</a> & text, const <a href="tqobject.html">TQObject</a> * receiver, const char * member, const <a href="tqkeysequence.html">TQKeySequence</a> & accel = 0, int id = -1, int index = -1 ) </h3> The family of <a href="#insertItem">insertItem</a>() functions inserts menu items into a popup menu or a menu bar. @@ -300,7 +300,7 @@ 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="#connectItem">connectItem</a>() and <a href="#setAccel">setAccel</a>() on those items. <p> If you need to translate accelerators, use tr() with the text and -accelerator. (For translations use a string <a href="ntqkeysequence.html">key +accelerator. (For translations use a string <a href="tqkeysequence.html">key sequence</a>.): <pre> fileMenu->insertItem( tr("Open"), myView, TQ_SLOT(open()), @@ -339,7 +339,7 @@ version. <p> <p>See also <a href="#removeItem">removeItem</a>(), <a href="#changeItem">changeItem</a>(), <a href="#setAccel">setAccel</a>(), <a href="#connectItem">connectItem</a>(), <a href="tqaccel.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="tqiconset.html">TQIconSet</a> & icon, const <a href="tqstring.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 class=fn>int <a name="insertItem-2"></a>TQMenuData::insertItem ( const <a href="tqiconset.html">TQIconSet</a> & icon, const <a href="tqstring.html">TQString</a> & text, const <a href="tqobject.html">TQObject</a> * receiver, const char * member, const <a href="tqkeysequence.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 @@ -349,7 +349,7 @@ icon will be displayed to the left of the text in the item. <p> Returns the allocated <a href="tqmenudata.html#menu-identifier">menu identifier</a> number (<em>id</em> if <em>id</em> >= 0). <p> <p>See also <a href="#removeItem">removeItem</a>(), <a href="#changeItem">changeItem</a>(), <a href="#setAccel">setAccel</a>(), <a href="#connectItem">connectItem</a>(), <a href="tqaccel.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="tqpixmap.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 class=fn>int <a name="insertItem-3"></a>TQMenuData::insertItem ( const <a href="tqpixmap.html">TQPixmap</a> & pixmap, const <a href="tqobject.html">TQObject</a> * receiver, const char * member, const <a href="tqkeysequence.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>, @@ -361,7 +361,7 @@ should provide a mask (see <a href="tqpixmap.html#mask">TQPixmap::mask</a>()). <p> Returns the allocated <a href="tqmenudata.html#menu-identifier">menu identifier</a> number (<em>id</em> if <em>id</em> >= 0). <p> <p>See also <a href="#removeItem">removeItem</a>(), <a href="#changeItem">changeItem</a>(), <a href="#setAccel">setAccel</a>(), and <a href="#connectItem">connectItem</a>(). -<h3 class=fn>int <a name="insertItem-4"></a>TQMenuData::insertItem ( const <a href="tqiconset.html">TQIconSet</a> & icon, const <a href="tqpixmap.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 class=fn>int <a name="insertItem-4"></a>TQMenuData::insertItem ( const <a href="tqiconset.html">TQIconSet</a> & icon, const <a href="tqpixmap.html">TQPixmap</a> & pixmap, const <a href="tqobject.html">TQObject</a> * receiver, const char * member, const <a href="tqkeysequence.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>, @@ -592,7 +592,7 @@ no pixmap has been set. Removes the menu item at position <em>index</em>. <p> <p>See also <a href="#removeItem">removeItem</a>() and <a href="#clear">clear</a>(). -<h3 class=fn>void <a name="setAccel"></a>TQMenuData::setAccel ( const <a href="ntqkeysequence.html">TQKeySequence</a> & key, int id ) +<h3 class=fn>void <a name="setAccel"></a>TQMenuData::setAccel ( const <a href="tqkeysequence.html">TQKeySequence</a> & key, int id ) </h3> Sets the accelerator key for the menu item <em>id</em> to <em>key</em>. <p> An accelerator key consists of a key code and a combination of the |