diff options
Diffstat (limited to 'doc/html/listbox-example.html')
-rw-r--r-- | doc/html/listbox-example.html | 52 |
1 files changed, 26 insertions, 26 deletions
diff --git a/doc/html/listbox-example.html b/doc/html/listbox-example.html index 81fe0c860..46f166126 100644 --- a/doc/html/listbox-example.html +++ b/doc/html/listbox-example.html @@ -78,8 +78,8 @@ private slots: private: <a href="ntqlistbox.html">TQListBox</a> * l; - <a href="ntqspinbox.html">TQSpinBox</a> * columns; - <a href="ntqspinbox.html">TQSpinBox</a> * rows; + <a href="tqspinbox.html">TQSpinBox</a> * columns; + <a href="tqspinbox.html">TQSpinBox</a> * rows; <a href="ntqbuttongroup.html">TQButtonGroup</a> * bg; }; @@ -102,13 +102,13 @@ private: #include "listbox.h" #include <<a href="tqlabel-h.html">tqlabel.h</a>> -#include <<a href="qradiobutton-h.html">ntqradiobutton.h</a>> -#include <<a href="qcheckbox-h.html">ntqcheckbox.h</a>> -#include <<a href="qspinbox-h.html">ntqspinbox.h</a>> +#include <<a href="tqradiobutton-h.html">tqradiobutton.h</a>> +#include <<a href="tqcheckbox-h.html">tqcheckbox.h</a>> +#include <<a href="tqspinbox-h.html">tqspinbox.h</a>> #include <<a href="qlistbox-h.html">ntqlistbox.h</a>> #include <<a href="qbuttongroup-h.html">ntqbuttongroup.h</a>> #include <<a href="qlayout-h.html">ntqlayout.h</a>> -#include <<a href="qpushbutton-h.html">ntqpushbutton.h</a>> +#include <<a href="tqpushbutton-h.html">tqpushbutton.h</a>> <a name="f441"></a>ListBoxDemo::ListBoxDemo() @@ -126,27 +126,27 @@ private: <a href="qvboxlayout.html">TQVBoxLayout</a> * v = new <a href="qvboxlayout.html">TQVBoxLayout</a>; <a name="x1430"></a> g-><a href="qgridlayout.html#addLayout">addLayout</a>( v, 1, 0 ); - <a href="ntqradiobutton.html">TQRadioButton</a> * b; + <a href="tqradiobutton.html">TQRadioButton</a> * b; bg = new <a href="ntqbuttongroup.html">TQButtonGroup</a>( 0 ); - b = new <a href="ntqradiobutton.html">TQRadioButton</a>( "Fixed number of columns,\n" + b = new <a href="tqradiobutton.html">TQRadioButton</a>( "Fixed number of columns,\n" "as many rows as needed.", this ); <a name="x1428"></a> bg-><a href="ntqbuttongroup.html#insert">insert</a>( b ); <a name="x1425"></a> v-><a href="qboxlayout.html#addWidget">addWidget</a>( b ); -<a name="x1440"></a> b-><a href="ntqradiobutton.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="ntqbutton.html#clicked">clicked</a>()), this, TQ_SLOT(setNumCols()) ); <a href="qhboxlayout.html">TQHBoxLayout</a> * h = new <a href="qhboxlayout.html">TQHBoxLayout</a>; <a name="x1422"></a> v-><a href="qboxlayout.html#addLayout">addLayout</a>( h ); <a name="x1423"></a> h-><a href="qboxlayout.html#addSpacing">addSpacing</a>( 30 ); h-><a href="qboxlayout.html#addSpacing">addSpacing</a>( 100 ); h-><a href="qboxlayout.html#addWidget">addWidget</a>( new <a href="tqlabel.html">TQLabel</a>( "Columns:", this ) ); - columns = new <a href="ntqspinbox.html">TQSpinBox</a>( this ); + columns = new <a href="tqspinbox.html">TQSpinBox</a>( this ); h-><a href="qboxlayout.html#addWidget">addWidget</a>( columns ); v-><a href="qboxlayout.html#addSpacing">addSpacing</a>( 12 ); - b = new <a href="ntqradiobutton.html">TQRadioButton</a>( "As many columns as fit on-screen,\n" + b = new <a href="tqradiobutton.html">TQRadioButton</a>( "As many columns as fit on-screen,\n" "as many rows as needed.", this ); bg-><a href="ntqbuttongroup.html#insert">insert</a>( b ); @@ -155,7 +155,7 @@ private: v-><a href="qboxlayout.html#addSpacing">addSpacing</a>( 12 ); - b = new <a href="ntqradiobutton.html">TQRadioButton</a>( "Fixed number of rows,\n" + b = new <a href="tqradiobutton.html">TQRadioButton</a>( "Fixed number of rows,\n" "as many columns as needed.", this ); bg-><a href="ntqbuttongroup.html#insert">insert</a>( b ); @@ -166,13 +166,13 @@ private: h-><a href="qboxlayout.html#addSpacing">addSpacing</a>( 30 ); h-><a href="qboxlayout.html#addSpacing">addSpacing</a>( 100 ); h-><a href="qboxlayout.html#addWidget">addWidget</a>( new <a href="tqlabel.html">TQLabel</a>( "Rows:", this ) ); - rows = new <a href="ntqspinbox.html">TQSpinBox</a>( this ); + rows = new <a href="tqspinbox.html">TQSpinBox</a>( this ); <a name="x1442"></a> rows-><a href="tqwidget.html#setEnabled">setEnabled</a>( FALSE ); h-><a href="qboxlayout.html#addWidget">addWidget</a>( rows ); v-><a href="qboxlayout.html#addSpacing">addSpacing</a>( 12 ); - b = new <a href="ntqradiobutton.html">TQRadioButton</a>( "As many rows as fit on-screen,\n" + b = new <a href="tqradiobutton.html">TQRadioButton</a>( "As many rows as fit on-screen,\n" "as many columns as needed.", this ); bg-><a href="ntqbuttongroup.html#insert">insert</a>( b ); @@ -181,25 +181,25 @@ private: v-><a href="qboxlayout.html#addSpacing">addSpacing</a>( 12 ); - <a href="ntqcheckbox.html">TQCheckBox</a> * cb = new <a href="ntqcheckbox.html">TQCheckBox</a>( "Variable-height rows", this ); -<a name="x1429"></a> cb-><a href="ntqcheckbox.html#setChecked">setChecked</a>( TRUE ); + <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="x1427"></a> <a href="tqobject.html#connect">connect</a>( cb, TQ_SIGNAL(<a href="ntqbutton.html#toggled">toggled</a>(bool)), this, TQ_SLOT(setVariableHeight(bool)) ); v-><a href="qboxlayout.html#addWidget">addWidget</a>( cb ); v-><a href="qboxlayout.html#addSpacing">addSpacing</a>( 6 ); - cb = new <a href="ntqcheckbox.html">TQCheckBox</a>( "Variable-width columns", this ); + cb = new <a href="tqcheckbox.html">TQCheckBox</a>( "Variable-width columns", this ); <a href="tqobject.html#connect">connect</a>( cb, TQ_SIGNAL(<a href="ntqbutton.html#toggled">toggled</a>(bool)), this, TQ_SLOT(setVariableWidth(bool)) ); v-><a href="qboxlayout.html#addWidget">addWidget</a>( cb ); - cb = new <a href="ntqcheckbox.html">TQCheckBox</a>( "Extended-Selection", this ); + cb = new <a href="tqcheckbox.html">TQCheckBox</a>( "Extended-Selection", this ); <a href="tqobject.html#connect">connect</a>( cb, TQ_SIGNAL(<a href="ntqbutton.html#toggled">toggled</a>(bool)), this, TQ_SLOT(setMultiSelection(bool)) ); v-><a href="qboxlayout.html#addWidget">addWidget</a>( cb ); - <a href="ntqpushbutton.html">TQPushButton</a> *pb = new <a href="ntqpushbutton.html">TQPushButton</a>( "Sort ascending", this ); + <a href="tqpushbutton.html">TQPushButton</a> *pb = new <a href="tqpushbutton.html">TQPushButton</a>( "Sort ascending", this ); <a href="tqobject.html#connect">connect</a>( pb, TQ_SIGNAL( <a href="ntqbutton.html#clicked">clicked</a>() ), this, TQ_SLOT( sortAscending() ) ); v-><a href="qboxlayout.html#addWidget">addWidget</a>( pb ); - pb = new <a href="ntqpushbutton.html">TQPushButton</a>( "Sort descending", this ); + pb = new <a href="tqpushbutton.html">TQPushButton</a>( "Sort descending", this ); <a href="tqobject.html#connect">connect</a>( pb, TQ_SIGNAL( <a href="ntqbutton.html#clicked">clicked</a>() ), this, TQ_SLOT( sortDescending() ) ); v-><a href="qboxlayout.html#addWidget">addWidget</a>( pb ); @@ -210,12 +210,12 @@ private: <a name="x1446"></a><a name="x1433"></a> l-><a href="ntqlistbox.html#insertItem">insertItem</a>( TQString::<a href="tqstring.html#fromLatin1">fromLatin1</a>( "Item " ) + TQString::number( i ), i ); <a name="x1441"></a> columns-><a href="ntqrangecontrol.html#setRange">setRange</a>( 1, 256 ); -<a name="x1443"></a> columns-><a href="ntqspinbox.html#setValue">setValue</a>( 1 ); +<a name="x1443"></a> columns-><a href="tqspinbox.html#setValue">setValue</a>( 1 ); rows-><a href="ntqrangecontrol.html#setRange">setRange</a>( 1, 256 ); - rows-><a href="ntqspinbox.html#setValue">setValue</a>( 256 ); + rows-><a href="tqspinbox.html#setValue">setValue</a>( 256 ); -<a name="x1445"></a> <a href="tqobject.html#connect">connect</a>( columns, TQ_SIGNAL(<a href="ntqspinbox.html#valueChanged">valueChanged</a>(int)), this, TQ_SLOT(setNumCols()) ); - <a href="tqobject.html#connect">connect</a>( rows, TQ_SIGNAL(<a href="ntqspinbox.html#valueChanged">valueChanged</a>(int)), this, TQ_SLOT(setNumRows()) ); +<a name="x1445"></a> <a href="tqobject.html#connect">connect</a>( columns, TQ_SIGNAL(<a href="tqspinbox.html#valueChanged">valueChanged</a>(int)), this, TQ_SLOT(setNumCols()) ); + <a href="tqobject.html#connect">connect</a>( rows, TQ_SIGNAL(<a href="tqspinbox.html#valueChanged">valueChanged</a>(int)), this, TQ_SLOT(setNumRows()) ); } @@ -229,7 +229,7 @@ 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 ); -<a name="x1444"></a><a name="x1435"></a> l-><a href="ntqlistbox.html#setRowMode">setRowMode</a>( rows-><a href="ntqspinbox.html#value">value</a>() ); +<a name="x1444"></a><a name="x1435"></a> l-><a href="ntqlistbox.html#setRowMode">setRowMode</a>( rows-><a href="tqspinbox.html#value">value</a>() ); } @@ -237,7 +237,7 @@ 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 ); -<a name="x1434"></a> l-><a href="ntqlistbox.html#setColumnMode">setColumnMode</a>( columns-><a href="ntqspinbox.html#value">value</a>() ); +<a name="x1434"></a> l-><a href="ntqlistbox.html#setColumnMode">setColumnMode</a>( columns-><a href="tqspinbox.html#value">value</a>() ); } |