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 e1d8f4ddf..63cc8f7f6 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 TQFrame. .SH "void TQPopupMenu::drawItem ( TQPainter * p, int tab_, TQMenuItem * 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 TQStyle::drawControl(). .SH "int TQPopupMenu::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 TQPopupMenu::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 TQMenuData::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 TQMenuData::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 TQMenuData::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 TQPopupMenu::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 TQPopupMenu::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 TQMenuData::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 TQPopupMenu::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 TQPopupMenu::setCheckable( true ) if necessary. .PP See also isItemChecked(). .PP Examples: .)l canvas/canvas.cpp, mdi/application.cpp, menu/menu.cpp, progress/progress.cpp, scrollview/scrollview.cpp, and showimg/showimg.cpp. .SH "void TQMenuData::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 TQMenuData::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 TQMenuData::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 TQMenuData::setItemChecked(). .PP |