diff options
author | Michele Calgaro <[email protected]> | 2024-08-25 15:36:25 +0900 |
---|---|---|
committer | Michele Calgaro <[email protected]> | 2024-08-29 22:23:36 +0900 |
commit | 0917fbb5387978eb7b2e2fd68bcb6beaa8c46505 (patch) | |
tree | 0ef68a6a92087957855c7607ac176821d10d049d /doc/html/tqpopupmenu.html | |
parent | 7b1d2ad2df8cd011b487c43336aa67639fa359c9 (diff) | |
download | tqt3-0917fbb5387978eb7b2e2fd68bcb6beaa8c46505.tar.gz tqt3-0917fbb5387978eb7b2e2fd68bcb6beaa8c46505.zip |
Rename remaining ntq[a-c]* related files to equivalent tq* (except ntqapplication.h and ntqconfig.h)
Signed-off-by: Michele Calgaro <[email protected]>
Diffstat (limited to 'doc/html/tqpopupmenu.html')
-rw-r--r-- | doc/html/tqpopupmenu.html | 30 |
1 files changed, 15 insertions, 15 deletions
diff --git a/doc/html/tqpopupmenu.html b/doc/html/tqpopupmenu.html index 93c8206da..34a6745a9 100644 --- a/doc/html/tqpopupmenu.html +++ b/doc/html/tqpopupmenu.html @@ -130,7 +130,7 @@ synchronously with <a href="#exec">exec</a>(). <p> Technically, a popup menu consists of a list of menu items. You add items with <a href="tqmenudata.html#insertItem">insertItem</a>(). An item is either a string, a pixmap or a custom item that provides its own drawing function (see -<a href="qcustommenuitem.html">TQCustomMenuItem</a>). In addition, items can have an optional icon +<a href="tqcustommenuitem.html">TQCustomMenuItem</a>). In addition, items can have an optional icon drawn on the very left side and an accelerator key such as "Ctrl+X". <p> There are three kinds of menu items: separators, menu items that @@ -213,7 +213,7 @@ You can connect it to any slot that sets up the menu contents 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 such menu item. -<p> <p>See also <a href="tqmenudata.html#setAccel">setAccel</a>(), <a href="ntqaccel.html">TQAccel</a>, and <a href="qnamespace-h.html">ntqnamespace.h</a>. +<p> <p>See also <a href="tqmenudata.html#setAccel">setAccel</a>(), <a href="tqaccel.html">TQAccel</a>, and <a href="qnamespace-h.html">ntqnamespace.h</a>. <h3 class=fn>void <a name="activated"></a>TQPopupMenu::activated ( int id )<tt> [signal]</tt> </h3> @@ -304,7 +304,7 @@ Executes this popup synchronously. situations you'll want to specify the position yourself, for example at the current mouse position: <pre> - <a href="#exec">exec</a>(TQCursor::<a href="ntqcursor.html#pos">pos</a>()); + <a href="#exec">exec</a>(TQCursor::<a href="tqcursor.html#pos">pos</a>()); </pre> or aligned to a widget: @@ -331,7 +331,7 @@ via the signal-slot connection and in the return value of exec(). <p> Common usage is to position the popup at the current mouse position: <pre> - <a href="#exec">exec</a>( TQCursor::<a href="ntqcursor.html#pos">pos</a>() ); + <a href="#exec">exec</a>( TQCursor::<a href="tqcursor.html#pos">pos</a>() ); </pre> or aligned to a widget: @@ -380,7 +380,7 @@ The family of <a href="tqmenudata.html#insertItem">insertItem</a>() functions in popup menu or a menu bar. <p> A menu item is usually either a text string or a pixmap, both with an optional icon or keyboard accelerator. For special cases it is -also possible to insert custom items (see <a href="qcustommenuitem.html">TQCustomMenuItem</a>) or +also possible to insert custom items (see <a href="tqcustommenuitem.html">TQCustomMenuItem</a>) or even widgets into popup menus. <p> Some insertItem() members take a popup menu as an additional argument. Use this to insert submenus into existing menus or @@ -427,7 +427,7 @@ that live in a menu bar since their accelerators will then be installed in the menu bar itself. This also applies to stand-alone popup menus that have a top-level widget in their <a href="tqwidget.html#parentWidget">parentWidget</a>() chain. The menu will then install its accelerator object on that -top-level widget. For all other cases use an independent <a href="ntqaccel.html">TQAccel</a> +top-level widget. For all other cases use an independent <a href="tqaccel.html">TQAccel</a> object. <p> <b>Warning:</b> Be careful when passing a literal 0 to <a href="tqmenudata.html#insertItem">insertItem</a>() because some C++ compilers choose the wrong overloaded function. @@ -438,7 +438,7 @@ about signals or slots. Instead insert the items into a popup menu and insert the popup menu into the menubar. This may be fixed in a future TQt version. <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="tqmenudata.html#removeItem">removeItem</a>(), <a href="tqmenudata.html#changeItem">changeItem</a>(), <a href="tqmenudata.html#setAccel">setAccel</a>(), <a href="tqmenudata.html#connectItem">connectItem</a>(), <a href="ntqaccel.html">TQAccel</a>, and <a href="qnamespace-h.html">ntqnamespace.h</a>. +<p> <p>See also <a href="tqmenudata.html#removeItem">removeItem</a>(), <a href="tqmenudata.html#changeItem">changeItem</a>(), <a href="tqmenudata.html#setAccel">setAccel</a>(), <a href="tqmenudata.html#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 ) @@ -449,7 +449,7 @@ This is an overloaded member function, provided for convenience. It behaves esse menu item is connected it to the <em>receiver</em>'s <em>member</em> slot. The 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="tqmenudata.html#removeItem">removeItem</a>(), <a href="tqmenudata.html#changeItem">changeItem</a>(), <a href="tqmenudata.html#setAccel">setAccel</a>(), <a href="tqmenudata.html#connectItem">connectItem</a>(), <a href="ntqaccel.html">TQAccel</a>, and <a href="qnamespace-h.html">ntqnamespace.h</a>. +<p> <p>See also <a href="tqmenudata.html#removeItem">removeItem</a>(), <a href="tqmenudata.html#changeItem">changeItem</a>(), <a href="tqmenudata.html#setAccel">setAccel</a>(), <a href="tqmenudata.html#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> @@ -473,7 +473,7 @@ the item. The item is connected to the <em>member</em> slot in the <em>receiver< <p> To look best when being highlighted as a menu item, the pixmap 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="tqmenudata.html#removeItem">removeItem</a>(), <a href="tqmenudata.html#changeItem">changeItem</a>(), <a href="tqmenudata.html#setAccel">setAccel</a>(), <a href="tqmenudata.html#connectItem">connectItem</a>(), <a href="ntqaccel.html">TQAccel</a>, and <a href="qnamespace-h.html">ntqnamespace.h</a>. +<p> <p>See also <a href="tqmenudata.html#removeItem">removeItem</a>(), <a href="tqmenudata.html#changeItem">changeItem</a>(), <a href="tqmenudata.html#setAccel">setAccel</a>(), <a href="tqmenudata.html#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-5"></a>TQMenuData::insertItem ( const <a href="tqstring.html">TQString</a> & text, int id = -1, int index = -1 ) </h3> @@ -589,7 +589,7 @@ safely by calling: <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="tqmenudata.html#removeItem">removeItem</a>(). -<h3 class=fn>int <a name="insertItem-e"></a>TQMenuData::insertItem ( const <a href="tqiconset.html">TQIconSet</a> & icon, <a href="qcustommenuitem.html">TQCustomMenuItem</a> * custom, int id = -1, int index = -1 ) +<h3 class=fn>int <a name="insertItem-e"></a>TQMenuData::insertItem ( const <a href="tqiconset.html">TQIconSet</a> & icon, <a href="tqcustommenuitem.html">TQCustomMenuItem</a> * custom, 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 custom menu item <em>custom</em> with an <em>icon</em> and with @@ -598,9 +598,9 @@ optional id <em>id</em>, and optional <em>index</em> position. bars. Ownership of <em>custom</em> is transferred to the popup menu. <p> If you want to connect a custom item to a slot, use <a href="tqmenudata.html#connectItem">connectItem</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="tqmenudata.html#connectItem">connectItem</a>(), <a href="tqmenudata.html#removeItem">removeItem</a>(), and <a href="qcustommenuitem.html">TQCustomMenuItem</a>. +<p> <p>See also <a href="tqmenudata.html#connectItem">connectItem</a>(), <a href="tqmenudata.html#removeItem">removeItem</a>(), and <a href="tqcustommenuitem.html">TQCustomMenuItem</a>. -<h3 class=fn>int <a name="insertItem-f"></a>TQMenuData::insertItem ( <a href="qcustommenuitem.html">TQCustomMenuItem</a> * custom, int id = -1, int index = -1 ) +<h3 class=fn>int <a name="insertItem-f"></a>TQMenuData::insertItem ( <a href="tqcustommenuitem.html">TQCustomMenuItem</a> * custom, 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 custom menu item <em>custom</em> with optional id <em>id</em>, and @@ -609,7 +609,7 @@ optional <em>index</em> position. bars. Ownership of <em>custom</em> is transferred to the popup menu. <p> If you want to connect a custom item to a slot, use <a href="tqmenudata.html#connectItem">connectItem</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="tqmenudata.html#connectItem">connectItem</a>(), <a href="tqmenudata.html#removeItem">removeItem</a>(), and <a href="qcustommenuitem.html">TQCustomMenuItem</a>. +<p> <p>See also <a href="tqmenudata.html#connectItem">connectItem</a>(), <a href="tqmenudata.html#removeItem">removeItem</a>(), and <a href="tqcustommenuitem.html">TQCustomMenuItem</a>. <h3 class=fn>int <a name="insertSeparator"></a>TQMenuData::insertSeparator ( int index = -1 ) </h3> @@ -726,7 +726,7 @@ that live in a menu bar since their accelerators will then be installed in the menu bar itself. This also applies to stand-alone popup menus that have a top-level widget in their <a href="tqwidget.html#parentWidget">parentWidget</a>() chain. The menu will then install its accelerator object on that -top-level widget. For all other cases use an independent <a href="ntqaccel.html">TQAccel</a> +top-level widget. For all other cases use an independent <a href="tqaccel.html">TQAccel</a> object. <p> Example: <pre> @@ -747,7 +747,7 @@ object. <p> You can also specify the accelerator in the <a href="tqmenudata.html#insertItem">insertItem</a>() function. You may prefer to use <a href="tqaction.html">TQAction</a> to associate accelerators with menu items. -<p> <p>See also <a href="tqmenudata.html#accel">accel</a>(), <a href="tqmenudata.html#insertItem">insertItem</a>(), <a href="ntqaccel.html">TQAccel</a>, and <a href="tqaction.html">TQAction</a>. +<p> <p>See also <a href="tqmenudata.html#accel">accel</a>(), <a href="tqmenudata.html#insertItem">insertItem</a>(), <a href="tqaccel.html">TQAccel</a>, and <a href="tqaction.html">TQAction</a>. <p>Example: <a href="menu-example.html#x1871">menu/menu.cpp</a>. <h3 class=fn>void <a name="setActiveItem"></a>TQPopupMenu::setActiveItem ( int i )<tt> [virtual]</tt> |