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/menu-example.html | 18 +++++++++--------- 1 file changed, 9 insertions(+), 9 deletions(-) (limited to 'doc/html/menu-example.html') diff --git a/doc/html/menu-example.html b/doc/html/menu-example.html index e91c9ee22..6084ebc72 100644 --- a/doc/html/menu-example.html +++ b/doc/html/menu-example.html @@ -247,8 +247,8 @@ private: TQ_CHECK_PTR( edit ); int undoID = edit->insertItem( "&Undo", this, TQ_SLOT(undo()) ); int redoID = edit->insertItem( "&Redo", this, TQ_SLOT(redo()) ); - edit->setItemEnabled( undoID, FALSE ); - edit->setItemEnabled( redoID, FALSE ); + edit->setItemEnabled( undoID, false ); + edit->setItemEnabled( redoID, false ); TQPopupMenu* options = new TQPopupMenu( this ); TQ_CHECK_PTR( options ); @@ -259,19 +259,19 @@ private: options->polish(); // adjust system settings TQFont f = options->font(); - f.setBold( TRUE ); + f.setBold( true ); boldID = options->insertItem( new MyMenuItem( "Bold", f ) ); options->setAccel( CTRL+Key_B, boldID ); options->connectItem( boldID, this, TQ_SLOT(bold()) ); f = font(); - f.setUnderline( TRUE ); + f.setUnderline( true ); underlineID = options->insertItem( new MyMenuItem( "Underline", f ) ); options->setAccel( CTRL+Key_U, underlineID ); options->connectItem( underlineID, this, TQ_SLOT(underline()) ); - isBold = FALSE; - isUnderline = FALSE; - options->setCheckable( TRUE ); + isBold = false; + isUnderline = false; + options->setCheckable( true ); TQPopupMenu *help = new TQPopupMenu( this ); @@ -372,8 +372,8 @@ void MenuExample::redo() void MenuExample::normal() { - isBold = FALSE; - isUnderline = FALSE; + isBold = false; + isUnderline = false; TQFont font; label->setFont( font ); menu->setItemChecked( boldID, isBold ); -- cgit v1.2.3