From 4d495175043c399fdca6e1bb4c74ef176fc76fb4 Mon Sep 17 00:00:00 2001 From: Michele Calgaro Date: Wed, 6 Aug 2025 11:29:57 +0900 Subject: Replace TRUE/FALSE with boolean values true/false - part 4 Signed-off-by: Michele Calgaro --- doc/html/tqpopupmenu.html | 30 +++++++++++++++--------------- 1 file changed, 15 insertions(+), 15 deletions(-) (limited to 'doc/html/tqpopupmenu.html') diff --git a/doc/html/tqpopupmenu.html b/doc/html/tqpopupmenu.html index d6dce3d40..64d014863 100644 --- a/doc/html/tqpopupmenu.html +++ b/doc/html/tqpopupmenu.html @@ -148,7 +148,7 @@ value with each item.

You clear a popup menu with clear() and remove single items with removeItem() or removeItemAt().

A popup menu can display check marks for certain items when -enabled with setCheckable(TRUE). You check or uncheck items with +enabled with setCheckable(true). You check or uncheck items with setItemChecked().

Items are either enabled or disabled. You toggle their state with setItemEnabled(). Just before a popup menu becomes visible, it @@ -291,8 +291,8 @@ Draws all menu items using painter p.

void TQPopupMenu::drawItem ( TQPainter * p, int tab_, TQMenuItem * mi, bool act, int x, int y, int w, int h ) [protected]

Draws menu item mi in the area x, y, w, h, using -painter p. The item is drawn active if act is TRUE or drawn -inactive if act is FALSE. The rightmost tab_ pixels are used +painter p. The item is drawn active if act is true or drawn +inactive if act is false. The rightmost tab_ pixels are used for accelerator text.

See also TQStyle::drawControl(). @@ -638,25 +638,25 @@ handle is appended at the end of the list if index is negative.

Example: menu/menu.cpp.

bool TQPopupMenu::isCheckable () const -

Returns TRUE if the display of check marks on menu items is enabled; otherwise returns FALSE. +

Returns true if the display of check marks on menu items is enabled; otherwise returns false. See the "checkable" property for details.

bool TQMenuData::isItemChecked ( int id ) const

-Returns TRUE if the menu item with the id id has been checked; -otherwise returns FALSE. +Returns true if the menu item with the id id has been checked; +otherwise returns false.

See also setItemChecked().

Examples: canvas/canvas.cpp, progress/progress.cpp, and showimg/showimg.cpp.

bool TQMenuData::isItemEnabled ( int id ) const

-Returns TRUE if the item with identifier id is enabled; -otherwise returns FALSE +Returns true if the item with identifier id is enabled; +otherwise returns false

See also setItemEnabled() and isItemVisible().

bool TQMenuData::isItemVisible ( int id ) const

-Returns TRUE if the menu item with the id id is visible; -otherwise returns FALSE. +Returns true if the menu item with the id id is visible; +otherwise returns false.

See also setItemVisible().

int TQPopupMenu::itemHeight ( int row ) const [protected] @@ -758,15 +758,15 @@ Sets the currently active item to index i and repaints as necessary. See the "checkable" property for details.

void TQMenuData::setItemChecked ( int id, bool check )

-If check is TRUE, checks the menu item with id id; otherwise +If check is true, checks the menu item with id id; otherwise unchecks the menu item with id id. Calls -TQPopupMenu::setCheckable( TRUE ) if necessary. +TQPopupMenu::setCheckable( true ) if necessary.

See also isItemChecked().

Examples: canvas/canvas.cpp, mdi/application.cpp, menu/menu.cpp, progress/progress.cpp, scrollview/scrollview.cpp, and showimg/showimg.cpp.

void TQMenuData::setItemEnabled ( int id, bool enable )

-If enable is TRUE, enables the menu item with identifier id; +If enable is true, enables the menu item with identifier id; otherwise disables the menu item with identifier id.

See also isItemEnabled(). @@ -780,7 +780,7 @@ Sets the parameter of the activation signal of item id to paramExample: mdi/application.cpp.

void TQMenuData::setItemVisible ( int id, bool visible )

-If visible is TRUE, shows the menu item with id id; otherwise +If visible is true, shows the menu item with id id; otherwise hides the menu item with id id.

See also isItemVisible() and isItemEnabled(). @@ -811,7 +811,7 @@ Returns the What's This help text for the item with identifier id or

Property Documentation

bool checkable

This property holds whether the display of check marks on menu items is enabled. -

When TRUE, the display of check marks on menu items is enabled. +

When true, the display of check marks on menu items is enabled. Checking is always enabled when in Windows-style.

See also TQMenuData::setItemChecked(). -- cgit v1.2.3