diff options
Diffstat (limited to 'doc/man/man3/tqpopupmenu.3qt')
| -rw-r--r-- | doc/man/man3/tqpopupmenu.3qt | 20 |
1 files changed, 10 insertions, 10 deletions
diff --git a/doc/man/man3/tqpopupmenu.3qt b/doc/man/man3/tqpopupmenu.3qt index 05df91223..06ff8f934 100644 --- a/doc/man/man3/tqpopupmenu.3qt +++ b/doc/man/man3/tqpopupmenu.3qt @@ -227,7 +227,7 @@ When inserting action items you usually specify a receiver and a slot. The recei .PP You clear a popup menu with clear() and remove single items with removeItem() or removeItemAt(). .PP -A popup menu can display check marks for certain items when enabled with setCheckable(TRUE). You check or uncheck items with setItemChecked(). +A popup menu can display check marks for certain items when enabled with setCheckable(true). You check or uncheck items with setItemChecked(). .PP Items are either enabled or disabled. You toggle their state with setItemEnabled(). Just before a popup menu becomes visible, it emits the aboutToShow() signal. You can use this signal to set the correct enabled/disabled states of all menu items before the user sees it. The corresponding aboutToHide() signal is emitted when the menu hides again. .PP @@ -333,7 +333,7 @@ Draws all menu items using painter \fIp\fR. .PP Reimplemented from QFrame. .SH "void QPopupMenu::drawItem ( QPainter * p, int tab_, QMenuItem * mi, bool act, int x, int y, int w, int h )\fC [protected]\fR" -Draws menu item \fImi\fR in the area \fIx\fR, \fIy\fR, \fIw\fR, \fIh\fR, using painter \fIp\fR. The item is drawn active if \fIact\fR is TRUE or drawn inactive if \fIact\fR is FALSE. The rightmost \fItab_\fR pixels are used for accelerator text. +Draws menu item \fImi\fR in the area \fIx\fR, \fIy\fR, \fIw\fR, \fIh\fR, using painter \fIp\fR. The item is drawn active if \fIact\fR is true or drawn inactive if \fIact\fR is false. The rightmost \fItab_\fR pixels are used for accelerator text. .PP See also QStyle::drawControl(). .SH "int QPopupMenu::exec ()" @@ -632,20 +632,20 @@ The \fIindex\fR specifies the position in the menu. The tear-off handle is appen .PP Example: menu/menu.cpp. .SH "bool QPopupMenu::isCheckable () const" -Returns TRUE if the display of check marks on menu items is enabled; otherwise returns FALSE. See the "checkable" property for details. +Returns true if the display of check marks on menu items is enabled; otherwise returns false. See the "checkable" property for details. .SH "bool QMenuData::isItemChecked ( int id ) const" -Returns TRUE if the menu item with the id \fIid\fR has been checked; otherwise returns FALSE. +Returns true if the menu item with the id \fIid\fR has been checked; otherwise returns false. .PP See also setItemChecked(). .PP Examples: .)l canvas/canvas.cpp, progress/progress.cpp, and showimg/showimg.cpp. .SH "bool QMenuData::isItemEnabled ( int id ) const" -Returns TRUE if the item with identifier \fIid\fR is enabled; otherwise returns FALSE +Returns true if the item with identifier \fIid\fR is enabled; otherwise returns false .PP See also setItemEnabled() and isItemVisible(). .SH "bool QMenuData::isItemVisible ( int id ) const" -Returns TRUE if the menu item with the id \fIid\fR is visible; otherwise returns FALSE. +Returns true if the menu item with the id \fIid\fR is visible; otherwise returns false. .PP See also setItemVisible(). .SH "int QPopupMenu::itemHeight ( int row ) const\fC [protected]\fR" @@ -727,14 +727,14 @@ Sets the currently active item to index \fIi\fR and repaints as necessary. .SH "void QPopupMenu::setCheckable ( bool )\fC [virtual]\fR" Sets whether the display of check marks on menu items is enabled. See the "checkable" property for details. .SH "void QMenuData::setItemChecked ( int id, bool check )" -If \fIcheck\fR is TRUE, checks the menu item with id \fIid\fR; otherwise unchecks the menu item with id \fIid\fR. Calls QPopupMenu::setCheckable( TRUE ) if necessary. +If \fIcheck\fR is true, checks the menu item with id \fIid\fR; otherwise unchecks the menu item with id \fIid\fR. Calls QPopupMenu::setCheckable( true ) if necessary. .PP See also isItemChecked(). .PP Examples: .)l canvas/canvas.cpp, grapher/grapher.cpp, mdi/application.cpp, menu/menu.cpp, progress/progress.cpp, scrollview/scrollview.cpp, and showimg/showimg.cpp. .SH "void QMenuData::setItemEnabled ( int id, bool enable )" -If \fIenable\fR is TRUE, enables the menu item with identifier \fIid\fR; otherwise disables the menu item with identifier \fIid\fR. +If \fIenable\fR is true, enables the menu item with identifier \fIid\fR; otherwise disables the menu item with identifier \fIid\fR. .PP See also isItemEnabled(). .PP @@ -749,7 +749,7 @@ See also connectItem(), disconnectItem(), and itemParameter(). .PP Example: mdi/application.cpp. .SH "void QMenuData::setItemVisible ( int id, bool visible )" -If \fIvisible\fR is TRUE, shows the menu item with id \fIid\fR; otherwise hides the menu item with id \fIid\fR. +If \fIvisible\fR is true, shows the menu item with id \fIid\fR; otherwise hides the menu item with id \fIid\fR. .PP See also isItemVisible() and isItemEnabled(). .SH "void QMenuData::setWhatsThis ( int id, const TQString & text )" @@ -778,7 +778,7 @@ See also setWhatsThis(). .SH "bool checkable" This property holds whether the display of check marks on menu items is enabled. .PP -When TRUE, the display of check marks on menu items is enabled. Checking is always enabled when in Windows-style. +When true, the display of check marks on menu items is enabled. Checking is always enabled when in Windows-style. .PP See also QMenuData::setItemChecked(). .PP |
