From c03a4800879ab62692e017e01c825ba12a421ad0 Mon Sep 17 00:00:00 2001 From: Michele Calgaro Date: Tue, 1 Jul 2025 22:09:14 +0900 Subject: Replace TRUE/FALSE with boolean values true/false - part 2 Signed-off-by: Michele Calgaro --- examples/checklists/checklists.cpp | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) (limited to 'examples/checklists/checklists.cpp') diff --git a/examples/checklists/checklists.cpp b/examples/checklists/checklists.cpp index dda701c5d..b584c6744 100644 --- a/examples/checklists/checklists.cpp +++ b/examples/checklists/checklists.cpp @@ -40,7 +40,7 @@ CheckLists::CheckLists( TQWidget *parent, const char *name ) lv1 = new TQListView( this ); vbox1->addWidget( lv1 ); lv1->addColumn( "Items" ); - lv1->setRootIsDecorated( TRUE ); + lv1->setRootIsDecorated( true ); // create a list with 4 ListViewItems which will be parent items of other ListViewItems TQValueList parentList; @@ -54,7 +54,7 @@ CheckLists::CheckLists( TQWidget *parent, const char *name ) unsigned int num = 1; // go through the list of parent items... for ( TQValueList::Iterator it = parentList.begin(); it != parentList.end(); - ( *it )->setOpen( TRUE ), ++it, num++ ) { + ( *it )->setOpen( true ), ++it, num++ ) { item = *it; // ...and create 5 checkable child ListViewItems for each parent item for ( unsigned int i = 1; i <= 5; i++ ) @@ -83,7 +83,7 @@ CheckLists::CheckLists( TQWidget *parent, const char *name ) lv2 = new TQListView( this ); vbox2->addWidget( lv2 ); lv2->addColumn( "Items" ); - lv2->setRootIsDecorated( TRUE ); + lv2->setRootIsDecorated( true ); // another widget needed for layouting only tmp = new TQVBoxLayout( lay ); @@ -121,7 +121,7 @@ void CheckLists::copy1to2() // Insert first a controller Item into the second ListView. Always if Radio-ListViewItems // are inserted into a Listview, the parent item of these MUST be a controller Item! TQCheckListItem *item = new TQCheckListItem( lv2, "Controller", TQCheckListItem::Controller ); - item->setOpen( TRUE ); + item->setOpen( true ); // iterate through the first ListView... for ( ; it.current(); ++it ) @@ -133,7 +133,7 @@ void CheckLists::copy1to2() (void)new TQCheckListItem( item, it.current()->text( 0 ), TQCheckListItem::RadioButton ); if ( item->firstChild() ) - ( ( TQCheckListItem* )item->firstChild() )->setOn( TRUE ); + ( ( TQCheckListItem* )item->firstChild() )->setOn( true ); } /* -- cgit v1.2.3