diff options
| author | Michele Calgaro <michele.calgaro@yahoo.it> | 2025-11-26 15:11:22 +0900 |
|---|---|---|
| committer | Michele Calgaro <michele.calgaro@yahoo.it> | 2025-11-26 15:11:22 +0900 |
| commit | b87533f9904c10f24d6b2e8177c00944e3efe15b (patch) | |
| tree | c1106a381c851b51e86004698457aef1211b77be /doc/html/qcustommenuitem.html | |
| parent | 894037c3e68e1573a34183d936171f8cda5085f3 (diff) | |
| download | tqt-r14.1.x.tar.gz tqt-r14.1.x.zip | |
Replace TRUE/FALSE with boolean values true/false - part 4r14.1.x
Manually cherry-picked from commit 4d495175
Signed-off-by: Michele Calgaro <michele.calgaro@yahoo.it>
Diffstat (limited to 'doc/html/qcustommenuitem.html')
| -rw-r--r-- | doc/html/qcustommenuitem.html | 16 |
1 files changed, 8 insertions, 8 deletions
diff --git a/doc/html/qcustommenuitem.html b/doc/html/qcustommenuitem.html index ba27be589..0d1854f67 100644 --- a/doc/html/qcustommenuitem.html +++ b/doc/html/qcustommenuitem.html @@ -62,11 +62,11 @@ selection of drawing utilities in a vector drawing program. <p> A custom item is inserted into a popup menu with <a href="ntqmenudata.html#insertItem">TQPopupMenu::insertItem</a>(). <p> By default, a custom item can also have an icon and a keyboard -accelerator. You can reimplement <a href="#fullSpan">fullSpan</a>() to return TRUE if you +accelerator. You can reimplement <a href="#fullSpan">fullSpan</a>() to return true if you want the item to span the entire popup menu width. This is particularly useful for labels. <p> If you want the custom item to be treated just as a separator, -reimplement <a href="#isSeparator">isSeparator</a>() to return TRUE. +reimplement <a href="#isSeparator">isSeparator</a>() to return true. <p> 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 @@ -91,23 +91,23 @@ Destroys a TQCustomMenuItem <h3 class=fn>bool <a name="fullSpan"></a>TQCustomMenuItem::fullSpan () const<tt> [virtual]</tt> </h3> -Returns TRUE if this item wants to span the entire popup menu -width; otherwise returns FALSE. The default is FALSE, meaning that +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. <h3 class=fn>bool <a name="isSeparator"></a>TQCustomMenuItem::isSeparator () const<tt> [virtual]</tt> </h3> -Returns TRUE if this item is just a separator; otherwise returns -FALSE. +Returns true if this item is just a separator; otherwise returns +false. <h3 class=fn>void <a name="paint"></a>TQCustomMenuItem::paint ( <a href="ntqpainter.html">TQPainter</a> * p, const <a href="qcolorgroup.html">TQColorGroup</a> & cg, bool act, bool enabled, int x, int y, int w, int h )<tt> [pure virtual]</tt> </h3> <p> Paints this item. When this function is invoked, the painter <em>p</em> is set to a font and foreground color suitable for a menu item -text using color group <em>cg</em>. The item is active if <em>act</em> is TRUE -and enabled if <em>enabled</em> is TRUE. The geometry values <em>x</em>, <em>y</em>, +text using color group <em>cg</em>. The item is active if <em>act</em> is true +and enabled if <em>enabled</em> is true. The geometry values <em>x</em>, <em>y</em>, <em>w</em> and <em>h</em> specify where to draw the item. <p> Do not draw any background, this has already been done by the popup menu according to the current GUI style. |
