summaryrefslogtreecommitdiffstats
path: root/doc/man/man3/tqmenudata.3qt
diff options
context:
space:
mode:
Diffstat (limited to 'doc/man/man3/tqmenudata.3qt')
-rw-r--r--doc/man/man3/tqmenudata.3qt30
1 files changed, 15 insertions, 15 deletions
diff --git a/doc/man/man3/tqmenudata.3qt b/doc/man/man3/tqmenudata.3qt
index 6966df77e..31a55f178 100644
--- a/doc/man/man3/tqmenudata.3qt
+++ b/doc/man/man3/tqmenudata.3qt
@@ -64,10 +64,10 @@ Inherited by TQMenuBar and TQPopupMenu.
.BI "int \fBinsertItem\fR ( TQWidget * widget, int id = -1, int index = -1 )"
.br
.ti -1c
-.BI "int \fBinsertItem\fR ( const TQIconSet & icon, QCustomMenuItem * custom, int id = -1, int index = -1 )"
+.BI "int \fBinsertItem\fR ( const TQIconSet & icon, TQCustomMenuItem * custom, int id = -1, int index = -1 )"
.br
.ti -1c
-.BI "int \fBinsertItem\fR ( QCustomMenuItem * custom, int id = -1, int index = -1 )"
+.BI "int \fBinsertItem\fR ( TQCustomMenuItem * custom, int id = -1, int index = -1 )"
.br
.ti -1c
.BI "int \fBinsertSeparator\fR ( int index = -1 )"
@@ -208,7 +208,7 @@ Menu items can be removed with removeItem() and removeItemAt(), or changed with
.PP
Menu items are stored in a list. Use findItem() to find an item by its list position or by its menu identifier. (See also indexOf() and idAt().)
.PP
-See also QAccel, TQPopupMenu, TQAction, and Miscellaneous Classes.
+See also TQAccel, TQPopupMenu, TQAction, and Miscellaneous Classes.
.SH MEMBER FUNCTION DOCUMENTATION
.SH "TQMenuData::TQMenuData ()"
Constructs an empty menu data list.
@@ -217,7 +217,7 @@ Removes all menu items and disconnects any signals that have been connected.
.SH "QKeySequence TQMenuData::accel ( int id ) const"
Returns the accelerator key that has been defined for the menu item \fIid\fR, or 0 if it has no accelerator key or if there is no such menu item.
.PP
-See also setAccel(), QAccel, and ntqnamespace.h.
+See also setAccel(), TQAccel, and ntqnamespace.h.
.SH "void TQMenuData::activateItemAt ( int index )\fC [virtual]\fR"
Activates the menu item at position \fIindex\fR.
.PP
@@ -318,7 +318,7 @@ Example: scrollview/scrollview.cpp.
.SH "int TQMenuData::insertItem ( const TQString & text, const TQObject * receiver, const char * member, const QKeySequence & accel = 0, int id = -1, int index = -1 )"
The family of insertItem() functions inserts menu items into a popup menu or a menu bar.
.PP
-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 QCustomMenuItem) or even widgets into popup menus.
+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 TQCustomMenuItem) or even widgets into popup menus.
.PP
Some insertItem() members take a popup menu as an additional argument. Use this to insert submenus into existing menus or pulldown menus into a menu bar.
.PP
@@ -362,7 +362,7 @@ The \fIid\fR specifies the identification number associated with the menu item.
.PP
The \fIindex\fR specifies the position in the menu. The menu item is appended at the end of the list if \fIindex\fR is negative.
.PP
-Note that keyboard accelerators in TQt are not application-global, instead they are bound to a certain top-level window. For example, accelerators in TQPopupMenu items only work for menus that are associated with a certain window. This is true for popup menus 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 parentWidget() chain. The menu will then install its accelerator object on that top-level widget. For all other cases use an independent QAccel object.
+Note that keyboard accelerators in TQt are not application-global, instead they are bound to a certain top-level window. For example, accelerators in TQPopupMenu items only work for menus that are associated with a certain window. This is true for popup menus 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 parentWidget() chain. The menu will then install its accelerator object on that top-level widget. For all other cases use an independent TQAccel object.
.PP
\fBWarning:\fR Be careful when passing a literal 0 to insertItem() because some C++ compilers choose the wrong overloaded function. Cast the 0 to what you mean, e.g. \fC(TQObject*)0\fR.
.PP
@@ -370,7 +370,7 @@ Note that keyboard accelerators in TQt are not application-global, instead they
.PP
Returns the allocated menu identifier number (\fIid\fR if \fIid\fR >= 0).
.PP
-See also removeItem(), changeItem(), setAccel(), connectItem(), QAccel, and ntqnamespace.h.
+See also removeItem(), changeItem(), setAccel(), connectItem(), TQAccel, and ntqnamespace.h.
.PP
Examples:
.)l addressbook/mainwindow.cpp, canvas/canvas.cpp, menu/menu.cpp, qwerty/qwerty.cpp, scrollview/scrollview.cpp, showimg/showimg.cpp, and sound/sound.cpp.
@@ -381,7 +381,7 @@ Inserts a menu item with icon \fIicon\fR, text \fItext\fR, accelerator \fIaccel\
.PP
Returns the allocated menu identifier number (\fIid\fR if \fIid\fR >= 0).
.PP
-See also removeItem(), changeItem(), setAccel(), connectItem(), QAccel, and ntqnamespace.h.
+See also removeItem(), changeItem(), setAccel(), connectItem(), TQAccel, and ntqnamespace.h.
.SH "int TQMenuData::insertItem ( const TQPixmap & pixmap, const TQObject * receiver, const char * member, const QKeySequence & accel = 0, int id = -1, int index = -1 )"
This is an overloaded member function, provided for convenience. It behaves essentially like the above function.
.PP
@@ -401,7 +401,7 @@ To look best when being highlighted as a menu item, the pixmap should provide a
.PP
Returns the allocated menu identifier number (\fIid\fR if \fIid\fR >= 0).
.PP
-See also removeItem(), changeItem(), setAccel(), connectItem(), QAccel, and ntqnamespace.h.
+See also removeItem(), changeItem(), setAccel(), connectItem(), TQAccel, and ntqnamespace.h.
.SH "int TQMenuData::insertItem ( const TQString & text, int id = -1, int index = -1 )"
This is an overloaded member function, provided for convenience. It behaves essentially like the above function.
.PP
@@ -504,7 +504,7 @@ If the widget is focus-enabled it will get focus when the user traverses the pop
Returns the allocated menu identifier number (\fIid\fR if \fIid\fR >= 0).
.PP
See also removeItem().
-.SH "int TQMenuData::insertItem ( const TQIconSet & icon, QCustomMenuItem * custom, int id = -1, int index = -1 )"
+.SH "int TQMenuData::insertItem ( const TQIconSet & icon, TQCustomMenuItem * custom, int id = -1, int index = -1 )"
This is an overloaded member function, provided for convenience. It behaves essentially like the above function.
.PP
Inserts a custom menu item \fIcustom\fR with an \fIicon\fR and with optional id \fIid\fR, and optional \fIindex\fR position.
@@ -515,8 +515,8 @@ If you want to connect a custom item to a slot, use connectItem().
.PP
Returns the allocated menu identifier number (\fIid\fR if \fIid\fR >= 0).
.PP
-See also connectItem(), removeItem(), and QCustomMenuItem.
-.SH "int TQMenuData::insertItem ( QCustomMenuItem * custom, int id = -1, int index = -1 )"
+See also connectItem(), removeItem(), and TQCustomMenuItem.
+.SH "int TQMenuData::insertItem ( TQCustomMenuItem * custom, int id = -1, int index = -1 )"
This is an overloaded member function, provided for convenience. It behaves essentially like the above function.
.PP
Inserts a custom menu item \fIcustom\fR with optional id \fIid\fR, and optional \fIindex\fR position.
@@ -527,7 +527,7 @@ If you want to connect a custom item to a slot, use connectItem().
.PP
Returns the allocated menu identifier number (\fIid\fR if \fIid\fR >= 0).
.PP
-See also connectItem(), removeItem(), and QCustomMenuItem.
+See also connectItem(), removeItem(), and TQCustomMenuItem.
.SH "int TQMenuData::insertSeparator ( int index = -1 )"
Inserts a separator at position \fIindex\fR, and returns the menu identifier number allocated to it. The separator becomes the last menu item if \fIindex\fR is negative.
.PP
@@ -591,7 +591,7 @@ An accelerator key consists of a key code and a combination of the modifiers \fC
.PP
Defining an accelerator key produces a text that is added to the menu item; for instance, \fCCTRL\fR + \fCKey_O\fR produces "Ctrl+O". The text is formatted differently for different platforms.
.PP
-Note that keyboard accelerators in TQt are not application-global, instead they are bound to a certain top-level window. For example, accelerators in TQPopupMenu items only work for menus that are associated with a certain window. This is true for popup menus 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 parentWidget() chain. The menu will then install its accelerator object on that top-level widget. For all other cases use an independent QAccel object.
+Note that keyboard accelerators in TQt are not application-global, instead they are bound to a certain top-level window. For example, accelerators in TQPopupMenu items only work for menus that are associated with a certain window. This is true for popup menus 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 parentWidget() chain. The menu will then install its accelerator object on that top-level widget. For all other cases use an independent TQAccel object.
.PP
Example:
.PP
@@ -623,7 +623,7 @@ If you need to translate accelerators, use tr() with a string:
.PP
You can also specify the accelerator in the insertItem() function. You may prefer to use TQAction to associate accelerators with menu items.
.PP
-See also accel(), insertItem(), QAccel, and TQAction.
+See also accel(), insertItem(), TQAccel, and TQAction.
.PP
Example: menu/menu.cpp.
.SH "void TQMenuData::setId ( int index, int id )\fC [virtual]\fR"