From b87533f9904c10f24d6b2e8177c00944e3efe15b Mon Sep 17 00:00:00 2001 From: Michele Calgaro Date: Wed, 26 Nov 2025 15:11:22 +0900 Subject: Replace TRUE/FALSE with boolean values true/false - part 4 Manually cherry-picked from commit 4d495175 Signed-off-by: Michele Calgaro --- doc/html/checklists-example.html | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) (limited to 'doc/html/checklists-example.html') diff --git a/doc/html/checklists-example.html b/doc/html/checklists-example.html index db69b9c30..7659b24d9 100644 --- a/doc/html/checklists-example.html +++ b/doc/html/checklists-example.html @@ -120,7 +120,7 @@ protected slots: 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<TQListViewItem *> parentList; @@ -134,7 +134,7 @@ protected slots: unsigned int num = 1; // go through the list of parent items... for ( TQValueList<TQListViewItem*>::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++ ) @@ -163,7 +163,7 @@ protected slots: 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 ); @@ -201,7 +201,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 ) @@ -213,7 +213,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