diff options
Diffstat (limited to 'examples/checklists/checklists.cpp')
-rw-r--r-- | examples/checklists/checklists.cpp | 10 |
1 files changed, 5 insertions, 5 deletions
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<TQListViewItem *> 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<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++ ) @@ -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 ); } /* |