diff options
author | Michele Calgaro <michele.calgaro@yahoo.it> | 2024-08-12 22:02:11 +0900 |
---|---|---|
committer | Michele Calgaro <michele.calgaro@yahoo.it> | 2024-08-12 22:02:11 +0900 |
commit | 42957a3f812a1db64a9ae452baa2d3fbc35f2466 (patch) | |
tree | 0928f4e01a3dcc0698b46c7608d8310e471bdb49 /doc/html/listbox-example.html | |
parent | fef846914f8db6dc117e206ef913d519bf6bb33e (diff) | |
download | tqt3-42957a3f812a1db64a9ae452baa2d3fbc35f2466.tar.gz tqt3-42957a3f812a1db64a9ae452baa2d3fbc35f2466.zip |
Rename more widget nt* related files to equivalent tq*
Signed-off-by: Michele Calgaro <michele.calgaro@yahoo.it>
Diffstat (limited to 'doc/html/listbox-example.html')
-rw-r--r-- | doc/html/listbox-example.html | 72 |
1 files changed, 36 insertions, 36 deletions
diff --git a/doc/html/listbox-example.html b/doc/html/listbox-example.html index 46f166126..79f4528f9 100644 --- a/doc/html/listbox-example.html +++ b/doc/html/listbox-example.html @@ -34,7 +34,7 @@ body { background: #ffffff; color: black; } <p> This example shows how to use the different modes (single columns, multiple columns, -fixed number of rows, etc.) of <a href="ntqlistbox.html">TQListBox</a>. +fixed number of rows, etc.) of <a href="tqlistbox.html">TQListBox</a>. <p> <hr> <p> Header file: <p> <pre>/**************************************************************************** @@ -77,10 +77,10 @@ private slots: void sortDescending(); private: - <a href="ntqlistbox.html">TQListBox</a> * l; + <a href="tqlistbox.html">TQListBox</a> * l; <a href="tqspinbox.html">TQSpinBox</a> * columns; <a href="tqspinbox.html">TQSpinBox</a> * rows; - <a href="ntqbuttongroup.html">TQButtonGroup</a> * bg; + <a href="tqbuttongroup.html">TQButtonGroup</a> * bg; }; @@ -105,8 +105,8 @@ private: #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="tqlistbox-h.html">tqlistbox.h</a>> +#include <<a href="tqbuttongroup-h.html">tqbuttongroup.h</a>> #include <<a href="qlayout-h.html">ntqlayout.h</a>> #include <<a href="tqpushbutton-h.html">tqpushbutton.h</a>> @@ -114,28 +114,28 @@ private: <a name="f441"></a>ListBoxDemo::ListBoxDemo() : <a href="tqwidget.html">TQWidget</a>( 0, 0 ) { - <a href="qgridlayout.html">TQGridLayout</a> * g = new <a href="qgridlayout.html">TQGridLayout</a>( this, 2, 2, 6 ); + <a href="tqgridlayout.html">TQGridLayout</a> * g = new <a href="tqgridlayout.html">TQGridLayout</a>( this, 2, 2, 6 ); - g-><a href="qgridlayout.html#addWidget">addWidget</a>( new <a href="tqlabel.html">TQLabel</a>( "<b>Configuration:</b>", this ), 0, 0 ); - g-><a href="qgridlayout.html#addWidget">addWidget</a>( new <a href="tqlabel.html">TQLabel</a>( "<b>Result:</b>", this ), 0, 1 ); + g-><a href="tqgridlayout.html#addWidget">addWidget</a>( new <a href="tqlabel.html">TQLabel</a>( "<b>Configuration:</b>", this ), 0, 0 ); + g-><a href="tqgridlayout.html#addWidget">addWidget</a>( new <a href="tqlabel.html">TQLabel</a>( "<b>Result:</b>", this ), 0, 1 ); - l = new <a href="ntqlistbox.html">TQListBox</a>( this ); - g-><a href="qgridlayout.html#addWidget">addWidget</a>( l, 1, 1 ); + l = new <a href="tqlistbox.html">TQListBox</a>( this ); + g-><a href="tqgridlayout.html#addWidget">addWidget</a>( l, 1, 1 ); <a name="x1447"></a> l-><a href="tqwidget.html#setFocusPolicy">setFocusPolicy</a>( TQWidget::StrongFocus ); <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 name="x1430"></a> g-><a href="tqgridlayout.html#addLayout">addLayout</a>( v, 1, 0 ); <a href="tqradiobutton.html">TQRadioButton</a> * b; - bg = new <a href="ntqbuttongroup.html">TQButtonGroup</a>( 0 ); + bg = new <a href="tqbuttongroup.html">TQButtonGroup</a>( 0 ); 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="x1428"></a> bg-><a href="tqbuttongroup.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="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 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="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 ); @@ -149,18 +149,18 @@ private: 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 ); + bg-><a href="tqbuttongroup.html#insert">insert</a>( b ); v-><a href="qboxlayout.html#addWidget">addWidget</a>( b ); - <a href="tqobject.html#connect">connect</a>( b, TQ_SIGNAL(<a href="ntqbutton.html#clicked">clicked</a>()), this, TQ_SLOT(setColsByWidth()) ); + <a href="tqobject.html#connect">connect</a>( b, TQ_SIGNAL(<a href="tqbutton.html#clicked">clicked</a>()), this, TQ_SLOT(setColsByWidth()) ); v-><a href="qboxlayout.html#addSpacing">addSpacing</a>( 12 ); 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 ); + bg-><a href="tqbuttongroup.html#insert">insert</a>( b ); v-><a href="qboxlayout.html#addWidget">addWidget</a>( b ); - <a href="tqobject.html#connect">connect</a>( b, TQ_SIGNAL(<a href="ntqbutton.html#clicked">clicked</a>()), this, TQ_SLOT(setNumRows()) ); + <a href="tqobject.html#connect">connect</a>( b, TQ_SIGNAL(<a href="tqbutton.html#clicked">clicked</a>()), this, TQ_SLOT(setNumRows()) ); h = new <a href="qhboxlayout.html">TQHBoxLayout</a>; v-><a href="qboxlayout.html#addLayout">addLayout</a>( h ); h-><a href="qboxlayout.html#addSpacing">addSpacing</a>( 30 ); @@ -175,39 +175,39 @@ private: 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 ); + bg-><a href="tqbuttongroup.html#insert">insert</a>( b ); v-><a href="qboxlayout.html#addWidget">addWidget</a>( b ); - <a href="tqobject.html#connect">connect</a>( b, TQ_SIGNAL(<a href="ntqbutton.html#clicked">clicked</a>()), this, TQ_SLOT(setRowsByHeight()) ); + <a href="tqobject.html#connect">connect</a>( b, TQ_SIGNAL(<a href="tqbutton.html#clicked">clicked</a>()), this, TQ_SLOT(setRowsByHeight()) ); v-><a href="qboxlayout.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="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)) ); +<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="qboxlayout.html#addWidget">addWidget</a>( cb ); v-><a href="qboxlayout.html#addSpacing">addSpacing</a>( 6 ); 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)) ); + <a href="tqobject.html#connect">connect</a>( cb, TQ_SIGNAL(<a href="tqbutton.html#toggled">toggled</a>(bool)), this, TQ_SLOT(setVariableWidth(bool)) ); v-><a href="qboxlayout.html#addWidget">addWidget</a>( cb ); 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)) ); + <a href="tqobject.html#connect">connect</a>( cb, TQ_SIGNAL(<a href="tqbutton.html#toggled">toggled</a>(bool)), this, TQ_SLOT(setMultiSelection(bool)) ); v-><a href="qboxlayout.html#addWidget">addWidget</a>( cb ); <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() ) ); + <a href="tqobject.html#connect">connect</a>( pb, TQ_SIGNAL( <a href="tqbutton.html#clicked">clicked</a>() ), this, TQ_SLOT( sortAscending() ) ); v-><a href="qboxlayout.html#addWidget">addWidget</a>( pb ); 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() ) ); + <a href="tqobject.html#connect">connect</a>( pb, TQ_SIGNAL( <a href="tqbutton.html#clicked">clicked</a>() ), this, TQ_SLOT( sortDescending() ) ); v-><a href="qboxlayout.html#addWidget">addWidget</a>( pb ); <a name="x1424"></a> v-><a href="qboxlayout.html#addStretch">addStretch</a>( 100 ); int i = 0; while( ++i <= 2560 ) -<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 ), +<a name="x1446"></a><a name="x1433"></a> l-><a href="tqlistbox.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="tqspinbox.html#setValue">setValue</a>( 1 ); @@ -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="tqspinbox.html#value">value</a>() ); +<a name="x1444"></a><a name="x1435"></a> l-><a href="tqlistbox.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="tqspinbox.html#value">value</a>() ); +<a name="x1434"></a> l-><a href="tqlistbox.html#setColumnMode">setColumnMode</a>( columns-><a href="tqspinbox.html#value">value</a>() ); } @@ -245,7 +245,7 @@ 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 ); - l-><a href="ntqlistbox.html#setRowMode">setRowMode</a>( TQListBox::FitToHeight ); + l-><a href="tqlistbox.html#setRowMode">setRowMode</a>( TQListBox::FitToHeight ); } @@ -253,35 +253,35 @@ 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 ); - l-><a href="ntqlistbox.html#setColumnMode">setColumnMode</a>( TQListBox::FitToWidth ); + l-><a href="tqlistbox.html#setColumnMode">setColumnMode</a>( TQListBox::FitToWidth ); } void <a name="f446"></a>ListBoxDemo::setVariableWidth( bool b ) { -<a name="x1438"></a> l-><a href="ntqlistbox.html#setVariableWidth">setVariableWidth</a>( b ); +<a name="x1438"></a> l-><a href="tqlistbox.html#setVariableWidth">setVariableWidth</a>( b ); } void <a name="f447"></a>ListBoxDemo::setVariableHeight( bool b ) { -<a name="x1437"></a> l-><a href="ntqlistbox.html#setVariableHeight">setVariableHeight</a>( b ); +<a name="x1437"></a> l-><a href="tqlistbox.html#setVariableHeight">setVariableHeight</a>( b ); } void <a name="f448"></a>ListBoxDemo::setMultiSelection( bool b ) { -<a name="x1432"></a> l-><a href="ntqlistbox.html#clearSelection">clearSelection</a>(); -<a name="x1436"></a> l-><a href="ntqlistbox.html#setSelectionMode">setSelectionMode</a>( b ? TQListBox::Extended : <a href="ntqlistbox.html">TQListBox</a>::Single ); +<a name="x1432"></a> l-><a href="tqlistbox.html#clearSelection">clearSelection</a>(); +<a name="x1436"></a> l-><a href="tqlistbox.html#setSelectionMode">setSelectionMode</a>( b ? TQListBox::Extended : <a href="tqlistbox.html">TQListBox</a>::Single ); } void <a name="f449"></a>ListBoxDemo::sortAscending() { -<a name="x1439"></a> l-><a href="ntqlistbox.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="ntqlistbox.html#sort">sort</a>( FALSE ); + l-><a href="tqlistbox.html#sort">sort</a>( FALSE ); } </pre> |