summaryrefslogtreecommitdiffstats
path: root/doc/html/splitter-example.html
diff options
context:
space:
mode:
authorTimothy Pearson <kb9vqf@pearsoncomputing.net>2012-01-26 23:32:43 -0600
committerTimothy Pearson <kb9vqf@pearsoncomputing.net>2012-01-26 23:32:43 -0600
commitea318d1431c89e647598c510c4245c6571aa5f46 (patch)
tree996d29b80c30d453dda86d1a23162d441628f169 /doc/html/splitter-example.html
parentaaf89d4b48f69c9293feb187db26362e550b5561 (diff)
downloadtqt3-ea318d1431c89e647598c510c4245c6571aa5f46.tar.gz
tqt3-ea318d1431c89e647598c510c4245c6571aa5f46.zip
Update to latest tqt3 automated conversion
Diffstat (limited to 'doc/html/splitter-example.html')
-rw-r--r--doc/html/splitter-example.html82
1 files changed, 41 insertions, 41 deletions
diff --git a/doc/html/splitter-example.html b/doc/html/splitter-example.html
index 4cc0022f3..e7d51b5f7 100644
--- a/doc/html/splitter-example.html
+++ b/doc/html/splitter-example.html
@@ -47,15 +47,15 @@ decide for themselves how much space each child item should get.
**
*****************************************************************************/
-#include &lt;<a href="qapplication-h.html">qapplication.h</a>&gt;
-#include &lt;<a href="qlabel-h.html">qlabel.h</a>&gt;
-#include &lt;<a href="qsplitter-h.html">qsplitter.h</a>&gt;
-#include &lt;<a href="qmultilineedit-h.html">qmultilineedit.h</a>&gt;
+#include &lt;<a href="qapplication-h.html">ntqapplication.h</a>&gt;
+#include &lt;<a href="qlabel-h.html">ntqlabel.h</a>&gt;
+#include &lt;<a href="qsplitter-h.html">ntqsplitter.h</a>&gt;
+#include &lt;<a href="qmultilineedit-h.html">ntqmultilineedit.h</a>&gt;
-#include &lt;<a href="qpainter-h.html">qpainter.h</a>&gt;
+#include &lt;<a href="qpainter-h.html">ntqpainter.h</a>&gt;
-class Test : public <a href="qwidget.html">TQWidget</a> {
+class Test : public <a href="ntqwidget.html">TQWidget</a> {
public:
Test(TQWidget* parent=0, const char* name=0, int f=0);
void paintEvent(TQPaintEvent* e);
@@ -65,75 +65,75 @@ private:
<a name="f404"></a>Test::Test(TQWidget* parent, const char* name, int f) :
- <a href="qwidget.html">TQWidget</a>(parent, name, f)
+ <a href="ntqwidget.html">TQWidget</a>(parent, name, f)
{
}
-<a name="x1302"></a>void Test::<a href="qwidget.html#paintEvent">paintEvent</a>(TQPaintEvent* e)
+<a name="x1302"></a>void Test::<a href="ntqwidget.html#paintEvent">paintEvent</a>(TQPaintEvent* e)
{
- <a href="qpainter.html">TQPainter</a> p(this);
-<a name="x1298"></a> p.<a href="qpainter.html#setClipRect">setClipRect</a>(e-&gt;rect());
+ <a href="ntqpainter.html">TQPainter</a> p(this);
+<a name="x1298"></a> p.<a href="ntqpainter.html#setClipRect">setClipRect</a>(e-&gt;rect());
const int d = 1000; //large number
int x1 = 0;
- int x2 = <a href="qwidget.html#width">width</a>()-1;
+ int x2 = <a href="ntqwidget.html#width">width</a>()-1;
int y1 = 0;
- int y2 = <a href="qwidget.html#height">height</a>()-1;
+ int y2 = <a href="ntqwidget.html#height">height</a>()-1;
int x = (x1+x2)/2;
-<a name="x1297"></a> p.<a href="qpainter.html#drawLine">drawLine</a>( x, y1, x+d, y1+d );
- p.<a href="qpainter.html#drawLine">drawLine</a>( x, y1, x-d, y1+d );
- p.<a href="qpainter.html#drawLine">drawLine</a>( x, y2, x+d, y2-d );
- p.<a href="qpainter.html#drawLine">drawLine</a>( x, y2, x-d, y2-d );
+<a name="x1297"></a> p.<a href="ntqpainter.html#drawLine">drawLine</a>( x, y1, x+d, y1+d );
+ p.<a href="ntqpainter.html#drawLine">drawLine</a>( x, y1, x-d, y1+d );
+ p.<a href="ntqpainter.html#drawLine">drawLine</a>( x, y2, x+d, y2-d );
+ p.<a href="ntqpainter.html#drawLine">drawLine</a>( x, y2, x-d, y2-d );
int y = (y1+y2)/2;
- p.<a href="qpainter.html#drawLine">drawLine</a>( x1, y, x1+d, y+d );
- p.<a href="qpainter.html#drawLine">drawLine</a>( x1, y, x1+d, y-d );
- p.<a href="qpainter.html#drawLine">drawLine</a>( x2, y, x2-d, y+d );
- p.<a href="qpainter.html#drawLine">drawLine</a>( x2, y, x2-d, y-d );
+ p.<a href="ntqpainter.html#drawLine">drawLine</a>( x1, y, x1+d, y+d );
+ p.<a href="ntqpainter.html#drawLine">drawLine</a>( x1, y, x1+d, y-d );
+ p.<a href="ntqpainter.html#drawLine">drawLine</a>( x2, y, x2-d, y+d );
+ p.<a href="ntqpainter.html#drawLine">drawLine</a>( x2, y, x2-d, y-d );
}
int main( int argc, char ** argv )
{
- <a href="qapplication.html">TQApplication</a> a( argc, argv );
+ <a href="ntqapplication.html">TQApplication</a> a( argc, argv );
- <a href="qsplitter.html">TQSplitter</a> *s1 = new <a href="qsplitter.html">TQSplitter</a>( TQSplitter::Vertical, 0 , "main" );
+ <a href="ntqsplitter.html">TQSplitter</a> *s1 = new <a href="ntqsplitter.html">TQSplitter</a>( TQSplitter::Vertical, 0 , "main" );
- <a href="qsplitter.html">TQSplitter</a> *s2 = new <a href="qsplitter.html">TQSplitter</a>( TQSplitter::Horizontal, s1, "top" );
+ <a href="ntqsplitter.html">TQSplitter</a> *s2 = new <a href="ntqsplitter.html">TQSplitter</a>( TQSplitter::Horizontal, s1, "top" );
Test *t1 = new Test( s2, "topLeft" );
-<a name="x1303"></a> t1-&gt;<a href="qwidget.html#setBackgroundColor">setBackgroundColor</a>( TQt::blue.light( 180 ) );
-<a name="x1306"></a> t1-&gt;<a href="qwidget.html#setMinimumSize">setMinimumSize</a>( 50, 0 );
+<a name="x1303"></a> t1-&gt;<a href="ntqwidget.html#setBackgroundColor">setBackgroundColor</a>( TQt::blue.light( 180 ) );
+<a name="x1306"></a> t1-&gt;<a href="ntqwidget.html#setMinimumSize">setMinimumSize</a>( 50, 0 );
Test *t2 = new Test( s2, "topRight" );
- t2-&gt;<a href="qwidget.html#setBackgroundColor">setBackgroundColor</a>( TQt::green.light( 180 ) );
-<a name="x1301"></a> s2-&gt;<a href="qsplitter.html#setResizeMode">setResizeMode</a>( t2, TQSplitter::KeepSize );
-<a name="x1299"></a> s2-&gt;<a href="qsplitter.html#moveToFirst">moveToFirst</a>( t2 );
+ t2-&gt;<a href="ntqwidget.html#setBackgroundColor">setBackgroundColor</a>( TQt::green.light( 180 ) );
+<a name="x1301"></a> s2-&gt;<a href="ntqsplitter.html#setResizeMode">setResizeMode</a>( t2, TQSplitter::KeepSize );
+<a name="x1299"></a> s2-&gt;<a href="ntqsplitter.html#moveToFirst">moveToFirst</a>( t2 );
- <a href="qsplitter.html">TQSplitter</a> *s3 = new <a href="qsplitter.html">TQSplitter</a>( TQSplitter::Horizontal, s1, "bottom" );
+ <a href="ntqsplitter.html">TQSplitter</a> *s3 = new <a href="ntqsplitter.html">TQSplitter</a>( TQSplitter::Horizontal, s1, "bottom" );
Test *t3 = new Test( s3, "bottomLeft" );
- t3-&gt;<a href="qwidget.html#setBackgroundColor">setBackgroundColor</a>( TQt::red );
+ t3-&gt;<a href="ntqwidget.html#setBackgroundColor">setBackgroundColor</a>( TQt::red );
Test *t4 = new Test( s3, "bottomMiddle" );
- t4-&gt;<a href="qwidget.html#setBackgroundColor">setBackgroundColor</a>( TQt::white );
+ t4-&gt;<a href="ntqwidget.html#setBackgroundColor">setBackgroundColor</a>( TQt::white );
Test *t5 = new Test( s3, "bottomRight" );
-<a name="x1305"></a> t5-&gt;<a href="qwidget.html#setMaximumHeight">setMaximumHeight</a>( 250 );
- t5-&gt;<a href="qwidget.html#setMinimumSize">setMinimumSize</a>( 80, 50 );
- t5-&gt;<a href="qwidget.html#setBackgroundColor">setBackgroundColor</a>( TQt::yellow );
+<a name="x1305"></a> t5-&gt;<a href="ntqwidget.html#setMaximumHeight">setMaximumHeight</a>( 250 );
+ t5-&gt;<a href="ntqwidget.html#setMinimumSize">setMinimumSize</a>( 80, 50 );
+ t5-&gt;<a href="ntqwidget.html#setBackgroundColor">setBackgroundColor</a>( TQt::yellow );
#ifdef Q_WS_QWS
// TQt/Embedded XOR drawing not yet implemented.
-<a name="x1300"></a> s1-&gt;<a href="qsplitter.html#setOpaqueResize">setOpaqueResize</a>( TRUE );
+<a name="x1300"></a> s1-&gt;<a href="ntqsplitter.html#setOpaqueResize">setOpaqueResize</a>( TRUE );
#endif
- s2-&gt;<a href="qsplitter.html#setOpaqueResize">setOpaqueResize</a>( TRUE );
- s3-&gt;<a href="qsplitter.html#setOpaqueResize">setOpaqueResize</a>( TRUE );
+ s2-&gt;<a href="ntqsplitter.html#setOpaqueResize">setOpaqueResize</a>( TRUE );
+ s3-&gt;<a href="ntqsplitter.html#setOpaqueResize">setOpaqueResize</a>( TRUE );
- a.<a href="qapplication.html#setMainWidget">setMainWidget</a>( s1 );
- s1-&gt;<a href="qwidget.html#setCaption">setCaption</a>("TQt Example - Splitters");
- s1-&gt;<a href="qwidget.html#show">show</a>();
- int result = a.<a href="qapplication.html#exec">exec</a>();
+ a.<a href="ntqapplication.html#setMainWidget">setMainWidget</a>( s1 );
+ s1-&gt;<a href="ntqwidget.html#setCaption">setCaption</a>("TQt Example - Splitters");
+ s1-&gt;<a href="ntqwidget.html#show">show</a>();
+ int result = a.<a href="ntqapplication.html#exec">exec</a>();
delete s1;
return result;
}