diff options
Diffstat (limited to 'doc/html/listbox-example.html')
-rw-r--r-- | doc/html/listbox-example.html | 26 |
1 files changed, 13 insertions, 13 deletions
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 ); <a name="x1428"></a> bg-><a href="tqbuttongroup.html#insert">insert</a>( b ); <a name="x1425"></a> v-><a href="tqboxlayout.html#addWidget">addWidget</a>( b ); -<a name="x1440"></a> b-><a href="tqradiobutton.html#setChecked">setChecked</a>( TRUE ); +<a name="x1440"></a> b-><a href="tqradiobutton.html#setChecked">setChecked</a>( true ); <a name="x1426"></a> <a href="tqobject.html#connect">connect</a>( b, TQ_SIGNAL(<a href="tqbutton.html#clicked">clicked</a>()), this, TQ_SLOT(setNumCols()) ); <a href="tqhboxlayout.html">TQHBoxLayout</a> * h = new <a href="tqhboxlayout.html">TQHBoxLayout</a>; <a name="x1422"></a> v-><a href="tqboxlayout.html#addLayout">addLayout</a>( h ); @@ -166,7 +166,7 @@ private: h-><a href="tqboxlayout.html#addSpacing">addSpacing</a>( 100 ); h-><a href="tqboxlayout.html#addWidget">addWidget</a>( new <a href="tqlabel.html">TQLabel</a>( "Rows:", this ) ); rows = new <a href="tqspinbox.html">TQSpinBox</a>( this ); -<a name="x1442"></a> rows-><a href="tqwidget.html#setEnabled">setEnabled</a>( FALSE ); +<a name="x1442"></a> rows-><a href="tqwidget.html#setEnabled">setEnabled</a>( false ); h-><a href="tqboxlayout.html#addWidget">addWidget</a>( rows ); v-><a href="tqboxlayout.html#addSpacing">addSpacing</a>( 12 ); @@ -181,7 +181,7 @@ private: v-><a href="tqboxlayout.html#addSpacing">addSpacing</a>( 12 ); <a href="tqcheckbox.html">TQCheckBox</a> * cb = new <a href="tqcheckbox.html">TQCheckBox</a>( "Variable-height rows", this ); -<a name="x1429"></a> cb-><a href="tqcheckbox.html#setChecked">setChecked</a>( TRUE ); +<a name="x1429"></a> cb-><a href="tqcheckbox.html#setChecked">setChecked</a>( true ); <a name="x1427"></a> <a href="tqobject.html#connect">connect</a>( cb, TQ_SIGNAL(<a href="tqbutton.html#toggled">toggled</a>(bool)), this, TQ_SLOT(setVariableHeight(bool)) ); v-><a href="tqboxlayout.html#addWidget">addWidget</a>( cb ); v-><a href="tqboxlayout.html#addSpacing">addSpacing</a>( 6 ); @@ -226,32 +226,32 @@ ListBoxDemo::~ListBoxDemo() void <a name="f442"></a>ListBoxDemo::setNumRows() { - columns-><a href="tqwidget.html#setEnabled">setEnabled</a>( FALSE ); - rows-><a href="tqwidget.html#setEnabled">setEnabled</a>( TRUE ); + columns-><a href="tqwidget.html#setEnabled">setEnabled</a>( false ); + rows-><a href="tqwidget.html#setEnabled">setEnabled</a>( true ); <a name="x1444"></a><a name="x1435"></a> l-><a href="tqlistbox.html#setRowMode">setRowMode</a>( rows-><a href="tqspinbox.html#value">value</a>() ); } void <a name="f443"></a>ListBoxDemo::setNumCols() { - columns-><a href="tqwidget.html#setEnabled">setEnabled</a>( TRUE ); - rows-><a href="tqwidget.html#setEnabled">setEnabled</a>( FALSE ); + columns-><a href="tqwidget.html#setEnabled">setEnabled</a>( true ); + rows-><a href="tqwidget.html#setEnabled">setEnabled</a>( false ); <a name="x1434"></a> l-><a href="tqlistbox.html#setColumnMode">setColumnMode</a>( columns-><a href="tqspinbox.html#value">value</a>() ); } void <a name="f444"></a>ListBoxDemo::setRowsByHeight() { - columns-><a href="tqwidget.html#setEnabled">setEnabled</a>( FALSE ); - rows-><a href="tqwidget.html#setEnabled">setEnabled</a>( FALSE ); + columns-><a href="tqwidget.html#setEnabled">setEnabled</a>( false ); + rows-><a href="tqwidget.html#setEnabled">setEnabled</a>( false ); l-><a href="tqlistbox.html#setRowMode">setRowMode</a>( TQListBox::FitToHeight ); } void <a name="f445"></a>ListBoxDemo::setColsByWidth() { - columns-><a href="tqwidget.html#setEnabled">setEnabled</a>( FALSE ); - rows-><a href="tqwidget.html#setEnabled">setEnabled</a>( FALSE ); + columns-><a href="tqwidget.html#setEnabled">setEnabled</a>( false ); + rows-><a href="tqwidget.html#setEnabled">setEnabled</a>( false ); l-><a href="tqlistbox.html#setColumnMode">setColumnMode</a>( TQListBox::FitToWidth ); } @@ -275,12 +275,12 @@ void <a name="f448"></a>ListBoxDemo::setMultiSelection( bool b ) void <a name="f449"></a>ListBoxDemo::sortAscending() { -<a name="x1439"></a> l-><a href="tqlistbox.html#sort">sort</a>( TRUE ); +<a name="x1439"></a> l-><a href="tqlistbox.html#sort">sort</a>( true ); } void <a name="f450"></a>ListBoxDemo::sortDescending() { - l-><a href="tqlistbox.html#sort">sort</a>( FALSE ); + l-><a href="tqlistbox.html#sort">sort</a>( false ); } </pre> |