summaryrefslogtreecommitdiffstats
path: root/doc/html/rangecontrols-example.html
diff options
context:
space:
mode:
Diffstat (limited to 'doc/html/rangecontrols-example.html')
-rw-r--r--doc/html/rangecontrols-example.html130
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 &lt;<a href="qvbox-h.html">qvbox.h</a>&gt;
+#include &lt;<a href="qvbox-h.html">ntqvbox.h</a>&gt;
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 &lt;<a href="qhbox-h.html">qhbox.h</a>&gt;
-#include &lt;<a href="qlcdnumber-h.html">qlcdnumber.h</a>&gt;
-#include &lt;<a href="qspinbox-h.html">qspinbox.h</a>&gt;
-#include &lt;<a href="qlabel-h.html">qlabel.h</a>&gt;
-#include &lt;<a href="qstring-h.html">qstring.h</a>&gt;
-#include &lt;<a href="qslider-h.html">qslider.h</a>&gt;
-#include &lt;<a href="qcheckbox-h.html">qcheckbox.h</a>&gt;
+#include &lt;<a href="qhbox-h.html">ntqhbox.h</a>&gt;
+#include &lt;<a href="qlcdnumber-h.html">ntqlcdnumber.h</a>&gt;
+#include &lt;<a href="qspinbox-h.html">ntqspinbox.h</a>&gt;
+#include &lt;<a href="qlabel-h.html">ntqlabel.h</a>&gt;
+#include &lt;<a href="qstring-h.html">ntqstring.h</a>&gt;
+#include &lt;<a href="qslider-h.html">ntqslider.h</a>&gt;
+#include &lt;<a href="qcheckbox-h.html">ntqcheckbox.h</a>&gt;
#include &lt;limits.h&gt;
-<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-&gt;<a href="qframe.html#setMargin">setMargin</a>( 10 );
-<a name="x1381"></a> cell2-&gt;<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-&gt;<a href="qwidget.html#setMaximumHeight">setMaximumHeight</a>( label1-&gt;<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-&gt;<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-&gt;<a href="qwidget.html#setMaximumHeight">setMaximumHeight</a>( label2-&gt;<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-&gt;<a href="qspinbox.html#setSuffix">setSuffix</a>( " %" );
-<a name="x1388"></a> sb2-&gt;<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-&gt;<a href="qwidget.html#setMaximumHeight">setMaximumHeight</a>( label3-&gt;<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-&gt;<a href="qspinbox.html#setPrefix">setPrefix</a>( "$" );
- sb3-&gt;<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-&gt;<a href="qframe.html#setMargin">setMargin</a>( 10 );
- cell3-&gt;<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-&gt;<a href="qlcdnumber.html#display">display</a>( 33 );
-<a name="x1385"></a> lcd2-&gt;<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-&gt;<a href="qframe.html#setFrameStyle">setFrameStyle</a>( TQFrame::WinPanel | TQFrame::Sunken );
- cell4-&gt;<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-&gt;<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-&gt;<a href="ntqframe.html#setMargin">setMargin</a>( 10 );
+<a name="x1381"></a> cell2-&gt;<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-&gt;<a href="ntqwidget.html#setMaximumHeight">setMaximumHeight</a>( label1-&gt;<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-&gt;<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-&gt;<a href="ntqwidget.html#setMaximumHeight">setMaximumHeight</a>( label2-&gt;<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-&gt;<a href="ntqspinbox.html#setSuffix">setSuffix</a>( " %" );
+<a name="x1388"></a> sb2-&gt;<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-&gt;<a href="ntqwidget.html#setMaximumHeight">setMaximumHeight</a>( label3-&gt;<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-&gt;<a href="ntqspinbox.html#setPrefix">setPrefix</a>( "$" );
+ sb3-&gt;<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-&gt;<a href="ntqframe.html#setMargin">setMargin</a>( 10 );
+ cell3-&gt;<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-&gt;<a href="ntqlcdnumber.html#display">display</a>( 33 );
+<a name="x1385"></a> lcd2-&gt;<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-&gt;<a href="ntqframe.html#setFrameStyle">setFrameStyle</a>( TQFrame::WinPanel | TQFrame::Sunken );
+ cell4-&gt;<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-&gt;<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 &lt;<a href="qapplication-h.html">qapplication.h</a>&gt;
+#include &lt;<a href="qapplication-h.html">ntqapplication.h</a>&gt;
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>( &amp;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>( &amp;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>