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/listbox-example.html | 26 +++++++++++++------------- 1 file changed, 13 insertions(+), 13 deletions(-) (limited to 'doc/html/listbox-example.html') diff --git a/doc/html/listbox-example.html b/doc/html/listbox-example.html index 2f806e96b..a976f8ac3 100644 --- a/doc/html/listbox-example.html +++ b/doc/html/listbox-example.html @@ -133,7 +133,7 @@ private: this ); bg->insert( b ); v->addWidget( b ); - b->setChecked( TRUE ); + b->setChecked( true ); connect( b, TQ_SIGNAL(clicked()), this, TQ_SLOT(setNumCols()) ); TQHBoxLayout * h = new TQHBoxLayout; v->addLayout( h ); @@ -166,7 +166,7 @@ private: h->addSpacing( 100 ); h->addWidget( new TQLabel( "Rows:", this ) ); rows = new TQSpinBox( this ); - rows->setEnabled( FALSE ); + rows->setEnabled( false ); h->addWidget( rows ); v->addSpacing( 12 ); @@ -181,7 +181,7 @@ private: v->addSpacing( 12 ); TQCheckBox * cb = new TQCheckBox( "Variable-height rows", this ); - cb->setChecked( TRUE ); + cb->setChecked( true ); connect( cb, TQ_SIGNAL(toggled(bool)), this, TQ_SLOT(setVariableHeight(bool)) ); v->addWidget( cb ); v->addSpacing( 6 ); @@ -226,32 +226,32 @@ ListBoxDemo::~ListBoxDemo() void ListBoxDemo::setNumRows() { - columns->setEnabled( FALSE ); - rows->setEnabled( TRUE ); + columns->setEnabled( false ); + rows->setEnabled( true ); l->setRowMode( rows->value() ); } void ListBoxDemo::setNumCols() { - columns->setEnabled( TRUE ); - rows->setEnabled( FALSE ); + columns->setEnabled( true ); + rows->setEnabled( false ); l->setColumnMode( columns->value() ); } void ListBoxDemo::setRowsByHeight() { - columns->setEnabled( FALSE ); - rows->setEnabled( FALSE ); + columns->setEnabled( false ); + rows->setEnabled( false ); l->setRowMode( TQListBox::FitToHeight ); } void ListBoxDemo::setColsByWidth() { - columns->setEnabled( FALSE ); - rows->setEnabled( FALSE ); + columns->setEnabled( false ); + rows->setEnabled( false ); l->setColumnMode( TQListBox::FitToWidth ); } @@ -275,12 +275,12 @@ void ListBoxDemo::setMultiSelection( bool b ) void ListBoxDemo::sortAscending() { - l->sort( TRUE ); + l->sort( true ); } void ListBoxDemo::sortDescending() { - l->sort( FALSE ); + l->sort( false ); } -- cgit v1.2.3