diff options
Diffstat (limited to 'doc/man/man3/tqcustommenuitem.3qt')
-rw-r--r-- | doc/man/man3/tqcustommenuitem.3qt | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/doc/man/man3/tqcustommenuitem.3qt b/doc/man/man3/tqcustommenuitem.3qt index 0c65e1c8a..6efd5b1bd 100644 --- a/doc/man/man3/tqcustommenuitem.3qt +++ b/doc/man/man3/tqcustommenuitem.3qt @@ -46,9 +46,9 @@ This simple mechanism allows you to create all kinds of application specific men .PP A custom item is inserted into a popup menu with TQPopupMenu::insertItem(). .PP -By default, a custom item can also have an icon and a keyboard accelerator. You can reimplement fullSpan() to return TRUE if you want the item to span the entire popup menu width. This is particularly useful for labels. +By default, a custom item can also have an icon and a keyboard accelerator. You can reimplement fullSpan() to return true if you want the item to span the entire popup menu width. This is particularly useful for labels. .PP -If you want the custom item to be treated just as a separator, reimplement isSeparator() to return TRUE. +If you want the custom item to be treated just as a separator, reimplement isSeparator() to return true. .PP Note that you can insert pixmaps or bitmaps as items into a popup menu without needing to create a TQCustomMenuItem. However, custom menu items offer more flexibility, and -- especially important with Windows style -- provide the possibility of drawing the item with a different color when it is highlighted. .PP @@ -66,11 +66,11 @@ Constructs a TQCustomMenuItem .SH "TQCustomMenuItem::~TQCustomMenuItem ()\fC [virtual]\fR" Destroys a TQCustomMenuItem .SH "bool TQCustomMenuItem::fullSpan () const\fC [virtual]\fR" -Returns TRUE if this item wants to span the entire popup menu width; otherwise returns FALSE. The default is FALSE, meaning that the menu may show an icon and an accelerator key for this item as well. +Returns true if this item wants to span the entire popup menu width; otherwise returns false. The default is false, meaning that the menu may show an icon and an accelerator key for this item as well. .SH "bool TQCustomMenuItem::isSeparator () const\fC [virtual]\fR" -Returns TRUE if this item is just a separator; otherwise returns FALSE. +Returns true if this item is just a separator; otherwise returns false. .SH "void TQCustomMenuItem::paint ( TQPainter * p, const TQColorGroup & cg, bool act, bool enabled, int x, int y, int w, int h )\fC [pure virtual]\fR" -Paints this item. When this function is invoked, the painter \fIp\fR is set to a font and foreground color suitable for a menu item text using color group \fIcg\fR. The item is active if \fIact\fR is TRUE and enabled if \fIenabled\fR is TRUE. The geometry values \fIx\fR, \fIy\fR, \fIw\fR and \fIh\fR specify where to draw the item. +Paints this item. When this function is invoked, the painter \fIp\fR is set to a font and foreground color suitable for a menu item text using color group \fIcg\fR. The item is active if \fIact\fR is true and enabled if \fIenabled\fR is true. The geometry values \fIx\fR, \fIy\fR, \fIw\fR and \fIh\fR specify where to draw the item. .PP Do not draw any background, this has already been done by the popup menu according to the current GUI style. .SH "void TQCustomMenuItem::setFont ( const TQFont & font )\fC [virtual]\fR" |