diff options
author | Timothy Pearson <kb9vqf@pearsoncomputing.net> | 2012-01-26 23:32:43 -0600 |
---|---|---|
committer | Timothy Pearson <kb9vqf@pearsoncomputing.net> | 2012-01-26 23:32:43 -0600 |
commit | ea318d1431c89e647598c510c4245c6571aa5f46 (patch) | |
tree | 996d29b80c30d453dda86d1a23162d441628f169 /doc/html/rangecontrols-example.html | |
parent | aaf89d4b48f69c9293feb187db26362e550b5561 (diff) | |
download | tqt3-ea318d1431c89e647598c510c4245c6571aa5f46.tar.gz tqt3-ea318d1431c89e647598c510c4245c6571aa5f46.zip |
Update to latest tqt3 automated conversion
Diffstat (limited to 'doc/html/rangecontrols-example.html')
-rw-r--r-- | doc/html/rangecontrols-example.html | 130 |
1 files changed, 65 insertions, 65 deletions
diff --git a/doc/html/rangecontrols-example.html b/doc/html/rangecontrols-example.html index 57e4e7209..632196c84 100644 --- a/doc/html/rangecontrols-example.html +++ b/doc/html/rangecontrols-example.html @@ -50,19 +50,19 @@ are supported by TQt: dials, spin boxes and sliders. #ifndef RANGECONTROLS_H #define RANGECONTROLS_H -#include <<a href="qvbox-h.html">qvbox.h</a>> +#include <<a href="qvbox-h.html">ntqvbox.h</a>> class TQCheckBox; -class RangeControls : public <a href="qvbox.html">TQVBox</a> +class RangeControls : public <a href="ntqvbox.html">TQVBox</a> { <a href="metaobjects.html#Q_OBJECT">Q_OBJECT</a> public: - RangeControls( <a href="qwidget.html">TQWidget</a> *parent = 0, const char *name = 0 ); + RangeControls( <a href="ntqwidget.html">TQWidget</a> *parent = 0, const char *name = 0 ); private: - <a href="qcheckbox.html">TQCheckBox</a> *notches, *wrapping; + <a href="ntqcheckbox.html">TQCheckBox</a> *notches, *wrapping; }; #endif @@ -82,64 +82,64 @@ private: #include "rangecontrols.h" -#include <<a href="qhbox-h.html">qhbox.h</a>> -#include <<a href="qlcdnumber-h.html">qlcdnumber.h</a>> -#include <<a href="qspinbox-h.html">qspinbox.h</a>> -#include <<a href="qlabel-h.html">qlabel.h</a>> -#include <<a href="qstring-h.html">qstring.h</a>> -#include <<a href="qslider-h.html">qslider.h</a>> -#include <<a href="qcheckbox-h.html">qcheckbox.h</a>> +#include <<a href="qhbox-h.html">ntqhbox.h</a>> +#include <<a href="qlcdnumber-h.html">ntqlcdnumber.h</a>> +#include <<a href="qspinbox-h.html">ntqspinbox.h</a>> +#include <<a href="qlabel-h.html">ntqlabel.h</a>> +#include <<a href="qstring-h.html">ntqstring.h</a>> +#include <<a href="qslider-h.html">ntqslider.h</a>> +#include <<a href="qcheckbox-h.html">ntqcheckbox.h</a>> #include <limits.h> -<a name="f436"></a>RangeControls::RangeControls( <a href="qwidget.html">TQWidget</a> *parent, const char *name ) - : <a href="qvbox.html">TQVBox</a>( parent, name ) +<a name="f436"></a>RangeControls::RangeControls( <a href="ntqwidget.html">TQWidget</a> *parent, const char *name ) + : <a href="ntqvbox.html">TQVBox</a>( parent, name ) { - <a href="qhbox.html">TQHBox</a> *row1 = new <a href="qhbox.html">TQHBox</a>( this ); - - <a href="qvbox.html">TQVBox</a> *cell2 = new <a href="qvbox.html">TQVBox</a>( row1 ); -<a name="x1382"></a> cell2-><a href="qframe.html#setMargin">setMargin</a>( 10 ); -<a name="x1381"></a> cell2-><a href="qframe.html#setFrameStyle">setFrameStyle</a>( TQFrame::WinPanel | TQFrame::Sunken ); - - (void)new <a href="qwidget.html">TQWidget</a>( cell2 ); - - <a href="qlabel.html">TQLabel</a> *label1 = new <a href="qlabel.html">TQLabel</a>( TQString( "Enter a value between\n%1 and %2:" ).arg( -INT_MAX ).arg( INT_MAX ), cell2 ); -<a name="x1391"></a><a name="x1383"></a> label1-><a href="qwidget.html#setMaximumHeight">setMaximumHeight</a>( label1-><a href="qwidget.html#sizeHint">sizeHint</a>().height() ); - <a href="qspinbox.html">TQSpinBox</a> *sb1 = new <a href="qspinbox.html">TQSpinBox</a>( -INT_MAX, INT_MAX, 1, cell2 ); -<a name="x1390"></a> sb1-><a href="qspinbox.html#setValue">setValue</a>( 0 ); - - <a href="qlabel.html">TQLabel</a> *label2 = new <a href="qlabel.html">TQLabel</a>( "Enter a zoom value:", cell2 ); - label2-><a href="qwidget.html#setMaximumHeight">setMaximumHeight</a>( label2-><a href="qwidget.html#sizeHint">sizeHint</a>().height() ); - <a href="qspinbox.html">TQSpinBox</a> *sb2 = new <a href="qspinbox.html">TQSpinBox</a>( 0, 1000, 10, cell2 ); -<a name="x1389"></a> sb2-><a href="qspinbox.html#setSuffix">setSuffix</a>( " %" ); -<a name="x1388"></a> sb2-><a href="qspinbox.html#setSpecialValueText">setSpecialValueText</a>( "Automatic" ); - - <a href="qlabel.html">TQLabel</a> *label3 = new <a href="qlabel.html">TQLabel</a>( "Enter a price:", cell2 ); - label3-><a href="qwidget.html#setMaximumHeight">setMaximumHeight</a>( label3-><a href="qwidget.html#sizeHint">sizeHint</a>().height() ); - <a href="qspinbox.html">TQSpinBox</a> *sb3 = new <a href="qspinbox.html">TQSpinBox</a>( 0, INT_MAX, 1, cell2 ); -<a name="x1387"></a> sb3-><a href="qspinbox.html#setPrefix">setPrefix</a>( "$" ); - sb3-><a href="qspinbox.html#setValue">setValue</a>( 355 ); - - (void)new <a href="qwidget.html">TQWidget</a>( cell2 ); - - <a href="qhbox.html">TQHBox</a> *row2 = new <a href="qhbox.html">TQHBox</a>( this ); - - <a href="qvbox.html">TQVBox</a> *cell3 = new <a href="qvbox.html">TQVBox</a>( row2 ); - cell3-><a href="qframe.html#setMargin">setMargin</a>( 10 ); - cell3-><a href="qframe.html#setFrameStyle">setFrameStyle</a>( TQFrame::WinPanel | TQFrame::Sunken ); - <a href="qslider.html">TQSlider</a> *hslider = new <a href="qslider.html">TQSlider</a>( 0, 64, 1, 33, TQt::Horizontal, cell3, "horizontal_s" ); - <a href="qlcdnumber.html">TQLCDNumber</a> *lcd2 = new <a href="qlcdnumber.html">TQLCDNumber</a>( 2, cell3 ); -<a name="x1384"></a> lcd2-><a href="qlcdnumber.html#display">display</a>( 33 ); -<a name="x1385"></a> lcd2-><a href="qlcdnumber.html#setSegmentStyle">setSegmentStyle</a>( TQLCDNumber::Filled ); -<a name="x1386"></a> <a href="qobject.html#connect">connect</a>( hslider, SIGNAL( <a href="qslider.html#valueChanged">valueChanged</a>( int ) ), lcd2, SLOT( <a href="qlcdnumber.html#display">display</a>( int ) ) ); - - <a href="qhbox.html">TQHBox</a> *cell4 = new <a href="qhbox.html">TQHBox</a>( row2 ); - cell4-><a href="qframe.html#setFrameStyle">setFrameStyle</a>( TQFrame::WinPanel | TQFrame::Sunken ); - cell4-><a href="qframe.html#setMargin">setMargin</a>( 10 ); - <a href="qslider.html">TQSlider</a> *vslider = new <a href="qslider.html">TQSlider</a>( 0, 64, 1, 8, TQt::Vertical, cell4 ); - <a href="qlcdnumber.html">TQLCDNumber</a> *lcd3 = new <a href="qlcdnumber.html">TQLCDNumber</a>( 3, cell4 ); - lcd3-><a href="qlcdnumber.html#display">display</a>( 8 ); - <a href="qobject.html#connect">connect</a>( vslider, SIGNAL( <a href="qslider.html#valueChanged">valueChanged</a>( int ) ), lcd3, SLOT( <a href="qlcdnumber.html#display">display</a>( int ) ) ); + <a href="ntqhbox.html">TQHBox</a> *row1 = new <a href="ntqhbox.html">TQHBox</a>( this ); + + <a href="ntqvbox.html">TQVBox</a> *cell2 = new <a href="ntqvbox.html">TQVBox</a>( row1 ); +<a name="x1382"></a> cell2-><a href="ntqframe.html#setMargin">setMargin</a>( 10 ); +<a name="x1381"></a> cell2-><a href="ntqframe.html#setFrameStyle">setFrameStyle</a>( TQFrame::WinPanel | TQFrame::Sunken ); + + (void)new <a href="ntqwidget.html">TQWidget</a>( cell2 ); + + <a href="ntqlabel.html">TQLabel</a> *label1 = new <a href="ntqlabel.html">TQLabel</a>( TQString( "Enter a value between\n%1 and %2:" ).arg( -INT_MAX ).arg( INT_MAX ), cell2 ); +<a name="x1391"></a><a name="x1383"></a> label1-><a href="ntqwidget.html#setMaximumHeight">setMaximumHeight</a>( label1-><a href="ntqwidget.html#sizeHint">sizeHint</a>().height() ); + <a href="ntqspinbox.html">TQSpinBox</a> *sb1 = new <a href="ntqspinbox.html">TQSpinBox</a>( -INT_MAX, INT_MAX, 1, cell2 ); +<a name="x1390"></a> sb1-><a href="ntqspinbox.html#setValue">setValue</a>( 0 ); + + <a href="ntqlabel.html">TQLabel</a> *label2 = new <a href="ntqlabel.html">TQLabel</a>( "Enter a zoom value:", cell2 ); + label2-><a href="ntqwidget.html#setMaximumHeight">setMaximumHeight</a>( label2-><a href="ntqwidget.html#sizeHint">sizeHint</a>().height() ); + <a href="ntqspinbox.html">TQSpinBox</a> *sb2 = new <a href="ntqspinbox.html">TQSpinBox</a>( 0, 1000, 10, cell2 ); +<a name="x1389"></a> sb2-><a href="ntqspinbox.html#setSuffix">setSuffix</a>( " %" ); +<a name="x1388"></a> sb2-><a href="ntqspinbox.html#setSpecialValueText">setSpecialValueText</a>( "Automatic" ); + + <a href="ntqlabel.html">TQLabel</a> *label3 = new <a href="ntqlabel.html">TQLabel</a>( "Enter a price:", cell2 ); + label3-><a href="ntqwidget.html#setMaximumHeight">setMaximumHeight</a>( label3-><a href="ntqwidget.html#sizeHint">sizeHint</a>().height() ); + <a href="ntqspinbox.html">TQSpinBox</a> *sb3 = new <a href="ntqspinbox.html">TQSpinBox</a>( 0, INT_MAX, 1, cell2 ); +<a name="x1387"></a> sb3-><a href="ntqspinbox.html#setPrefix">setPrefix</a>( "$" ); + sb3-><a href="ntqspinbox.html#setValue">setValue</a>( 355 ); + + (void)new <a href="ntqwidget.html">TQWidget</a>( cell2 ); + + <a href="ntqhbox.html">TQHBox</a> *row2 = new <a href="ntqhbox.html">TQHBox</a>( this ); + + <a href="ntqvbox.html">TQVBox</a> *cell3 = new <a href="ntqvbox.html">TQVBox</a>( row2 ); + cell3-><a href="ntqframe.html#setMargin">setMargin</a>( 10 ); + cell3-><a href="ntqframe.html#setFrameStyle">setFrameStyle</a>( TQFrame::WinPanel | TQFrame::Sunken ); + <a href="ntqslider.html">TQSlider</a> *hslider = new <a href="ntqslider.html">TQSlider</a>( 0, 64, 1, 33, TQt::Horizontal, cell3, "horizontal_s" ); + <a href="ntqlcdnumber.html">TQLCDNumber</a> *lcd2 = new <a href="ntqlcdnumber.html">TQLCDNumber</a>( 2, cell3 ); +<a name="x1384"></a> lcd2-><a href="ntqlcdnumber.html#display">display</a>( 33 ); +<a name="x1385"></a> lcd2-><a href="ntqlcdnumber.html#setSegmentStyle">setSegmentStyle</a>( TQLCDNumber::Filled ); +<a name="x1386"></a> <a href="ntqobject.html#connect">connect</a>( hslider, SIGNAL( <a href="ntqslider.html#valueChanged">valueChanged</a>( int ) ), lcd2, SLOT( <a href="ntqlcdnumber.html#display">display</a>( int ) ) ); + + <a href="ntqhbox.html">TQHBox</a> *cell4 = new <a href="ntqhbox.html">TQHBox</a>( row2 ); + cell4-><a href="ntqframe.html#setFrameStyle">setFrameStyle</a>( TQFrame::WinPanel | TQFrame::Sunken ); + cell4-><a href="ntqframe.html#setMargin">setMargin</a>( 10 ); + <a href="ntqslider.html">TQSlider</a> *vslider = new <a href="ntqslider.html">TQSlider</a>( 0, 64, 1, 8, TQt::Vertical, cell4 ); + <a href="ntqlcdnumber.html">TQLCDNumber</a> *lcd3 = new <a href="ntqlcdnumber.html">TQLCDNumber</a>( 3, cell4 ); + lcd3-><a href="ntqlcdnumber.html#display">display</a>( 8 ); + <a href="ntqobject.html#connect">connect</a>( vslider, SIGNAL( <a href="ntqslider.html#valueChanged">valueChanged</a>( int ) ), lcd3, SLOT( <a href="ntqlcdnumber.html#display">display</a>( int ) ) ); } </pre> @@ -156,19 +156,19 @@ private: *****************************************************************************/ #include "rangecontrols.h" -#include <<a href="qapplication-h.html">qapplication.h</a>> +#include <<a href="qapplication-h.html">ntqapplication.h</a>> int main( int argc, char **argv ) { - <a href="qapplication.html">TQApplication</a> a( argc, argv ); + <a href="ntqapplication.html">TQApplication</a> a( argc, argv ); RangeControls rangecontrols; - rangecontrols.<a href="qwidget.html#resize">resize</a>( 500, 300 ); - rangecontrols.<a href="qwidget.html#setCaption">setCaption</a>( "TQt Example - Range Control Widgets" ); - a.<a href="qapplication.html#setMainWidget">setMainWidget</a>( &rangecontrols ); - rangecontrols.<a href="qwidget.html#show">show</a>(); + rangecontrols.<a href="ntqwidget.html#resize">resize</a>( 500, 300 ); + rangecontrols.<a href="ntqwidget.html#setCaption">setCaption</a>( "TQt Example - Range Control Widgets" ); + a.<a href="ntqapplication.html#setMainWidget">setMainWidget</a>( &rangecontrols ); + rangecontrols.<a href="ntqwidget.html#show">show</a>(); - return a.<a href="qapplication.html#exec">exec</a>(); + return a.<a href="ntqapplication.html#exec">exec</a>(); } </pre> |