From ea318d1431c89e647598c510c4245c6571aa5f46 Mon Sep 17 00:00:00 2001 From: Timothy Pearson Date: Thu, 26 Jan 2012 23:32:43 -0600 Subject: Update to latest tqt3 automated conversion --- doc/html/splitter-example.html | 82 +++++++++++++++++++++--------------------- 1 file changed, 41 insertions(+), 41 deletions(-) (limited to 'doc/html/splitter-example.html') 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 <qapplication.h> -#include <qlabel.h> -#include <qsplitter.h> -#include <qmultilineedit.h> +#include <ntqapplication.h> +#include <ntqlabel.h> +#include <ntqsplitter.h> +#include <ntqmultilineedit.h> -#include <qpainter.h> +#include <ntqpainter.h> -class Test : public TQWidget { +class Test : public TQWidget { public: Test(TQWidget* parent=0, const char* name=0, int f=0); void paintEvent(TQPaintEvent* e); @@ -65,75 +65,75 @@ private: Test::Test(TQWidget* parent, const char* name, int f) : - TQWidget(parent, name, f) + TQWidget(parent, name, f) { } -void Test::paintEvent(TQPaintEvent* e) +void Test::paintEvent(TQPaintEvent* e) { - TQPainter p(this); - p.setClipRect(e->rect()); + TQPainter p(this); + p.setClipRect(e->rect()); const int d = 1000; //large number int x1 = 0; - int x2 = width()-1; + int x2 = width()-1; int y1 = 0; - int y2 = height()-1; + int y2 = height()-1; int x = (x1+x2)/2; - p.drawLine( x, y1, x+d, y1+d ); - p.drawLine( x, y1, x-d, y1+d ); - p.drawLine( x, y2, x+d, y2-d ); - p.drawLine( x, y2, x-d, y2-d ); + p.drawLine( x, y1, x+d, y1+d ); + p.drawLine( x, y1, x-d, y1+d ); + p.drawLine( x, y2, x+d, y2-d ); + p.drawLine( x, y2, x-d, y2-d ); int y = (y1+y2)/2; - p.drawLine( x1, y, x1+d, y+d ); - p.drawLine( x1, y, x1+d, y-d ); - p.drawLine( x2, y, x2-d, y+d ); - p.drawLine( x2, y, x2-d, y-d ); + p.drawLine( x1, y, x1+d, y+d ); + p.drawLine( x1, y, x1+d, y-d ); + p.drawLine( x2, y, x2-d, y+d ); + p.drawLine( x2, y, x2-d, y-d ); } int main( int argc, char ** argv ) { - TQApplication a( argc, argv ); + TQApplication a( argc, argv ); - TQSplitter *s1 = new TQSplitter( TQSplitter::Vertical, 0 , "main" ); + TQSplitter *s1 = new TQSplitter( TQSplitter::Vertical, 0 , "main" ); - TQSplitter *s2 = new TQSplitter( TQSplitter::Horizontal, s1, "top" ); + TQSplitter *s2 = new TQSplitter( TQSplitter::Horizontal, s1, "top" ); Test *t1 = new Test( s2, "topLeft" ); - t1->setBackgroundColor( TQt::blue.light( 180 ) ); - t1->setMinimumSize( 50, 0 ); + t1->setBackgroundColor( TQt::blue.light( 180 ) ); + t1->setMinimumSize( 50, 0 ); Test *t2 = new Test( s2, "topRight" ); - t2->setBackgroundColor( TQt::green.light( 180 ) ); - s2->setResizeMode( t2, TQSplitter::KeepSize ); - s2->moveToFirst( t2 ); + t2->setBackgroundColor( TQt::green.light( 180 ) ); + s2->setResizeMode( t2, TQSplitter::KeepSize ); + s2->moveToFirst( t2 ); - TQSplitter *s3 = new TQSplitter( TQSplitter::Horizontal, s1, "bottom" ); + TQSplitter *s3 = new TQSplitter( TQSplitter::Horizontal, s1, "bottom" ); Test *t3 = new Test( s3, "bottomLeft" ); - t3->setBackgroundColor( TQt::red ); + t3->setBackgroundColor( TQt::red ); Test *t4 = new Test( s3, "bottomMiddle" ); - t4->setBackgroundColor( TQt::white ); + t4->setBackgroundColor( TQt::white ); Test *t5 = new Test( s3, "bottomRight" ); - t5->setMaximumHeight( 250 ); - t5->setMinimumSize( 80, 50 ); - t5->setBackgroundColor( TQt::yellow ); + t5->setMaximumHeight( 250 ); + t5->setMinimumSize( 80, 50 ); + t5->setBackgroundColor( TQt::yellow ); #ifdef Q_WS_QWS // TQt/Embedded XOR drawing not yet implemented. - s1->setOpaqueResize( TRUE ); + s1->setOpaqueResize( TRUE ); #endif - s2->setOpaqueResize( TRUE ); - s3->setOpaqueResize( TRUE ); + s2->setOpaqueResize( TRUE ); + s3->setOpaqueResize( TRUE ); - a.setMainWidget( s1 ); - s1->setCaption("TQt Example - Splitters"); - s1->show(); - int result = a.exec(); + a.setMainWidget( s1 ); + s1->setCaption("TQt Example - Splitters"); + s1->show(); + int result = a.exec(); delete s1; return result; } -- cgit v1.2.1