diff options
author | Michele Calgaro <michele.calgaro@yahoo.it> | 2024-06-02 23:07:22 +0900 |
---|---|---|
committer | Michele Calgaro <michele.calgaro@yahoo.it> | 2024-06-02 23:22:42 +0900 |
commit | 8ac0e970e4464d9f8f73c0fb34a178ff135be8c3 (patch) | |
tree | b95884617b9a37accc843676d5d42be4116a3f54 /doc/html/splitter-example.html | |
parent | 68b81013e8668f50fc18b7e26a520ec93a7a1251 (diff) | |
download | tqt3-8ac0e970e4464d9f8f73c0fb34a178ff135be8c3.tar.gz tqt3-8ac0e970e4464d9f8f73c0fb34a178ff135be8c3.zip |
Rename ntqwidget* related files to equivalent tqwidget*
Signed-off-by: Michele Calgaro <michele.calgaro@yahoo.it>
Diffstat (limited to 'doc/html/splitter-example.html')
-rw-r--r-- | doc/html/splitter-example.html | 30 |
1 files changed, 15 insertions, 15 deletions
diff --git a/doc/html/splitter-example.html b/doc/html/splitter-example.html index efa3be1cc..4c73d89ec 100644 --- a/doc/html/splitter-example.html +++ b/doc/html/splitter-example.html @@ -55,7 +55,7 @@ decide for themselves how much space each child item should get. #include <<a href="qpainter-h.html">ntqpainter.h</a>> -class Test : public <a href="ntqwidget.html">TQWidget</a> { +class Test : public <a href="tqwidget.html">TQWidget</a> { public: Test(TQWidget* parent=0, const char* name=0, int f=0); void paintEvent(TQPaintEvent* e); @@ -65,20 +65,20 @@ private: <a name="f404"></a>Test::Test(TQWidget* parent, const char* name, int f) : - <a href="ntqwidget.html">TQWidget</a>(parent, name, f) + <a href="tqwidget.html">TQWidget</a>(parent, name, f) { } -<a name="x1302"></a>void Test::<a href="ntqwidget.html#paintEvent">paintEvent</a>(TQPaintEvent* e) +<a name="x1302"></a>void Test::<a href="tqwidget.html#paintEvent">paintEvent</a>(TQPaintEvent* e) { <a href="ntqpainter.html">TQPainter</a> p(this); <a name="x1298"></a> p.<a href="ntqpainter.html#setClipRect">setClipRect</a>(e->rect()); const int d = 1000; //large number int x1 = 0; - int x2 = <a href="ntqwidget.html#width">width</a>()-1; + int x2 = <a href="tqwidget.html#width">width</a>()-1; int y1 = 0; - int y2 = <a href="ntqwidget.html#height">height</a>()-1; + int y2 = <a href="tqwidget.html#height">height</a>()-1; int x = (x1+x2)/2; <a name="x1297"></a> p.<a href="ntqpainter.html#drawLine">drawLine</a>( x, y1, x+d, y1+d ); @@ -103,25 +103,25 @@ int main( int argc, char ** argv ) <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-><a href="ntqwidget.html#setBackgroundColor">setBackgroundColor</a>( TQt::blue.light( 180 ) ); -<a name="x1306"></a> t1-><a href="ntqwidget.html#setMinimumSize">setMinimumSize</a>( 50, 0 ); +<a name="x1303"></a> t1-><a href="tqwidget.html#setBackgroundColor">setBackgroundColor</a>( TQt::blue.light( 180 ) ); +<a name="x1306"></a> t1-><a href="tqwidget.html#setMinimumSize">setMinimumSize</a>( 50, 0 ); Test *t2 = new Test( s2, "topRight" ); - t2-><a href="ntqwidget.html#setBackgroundColor">setBackgroundColor</a>( TQt::green.light( 180 ) ); + t2-><a href="tqwidget.html#setBackgroundColor">setBackgroundColor</a>( TQt::green.light( 180 ) ); <a name="x1301"></a> s2-><a href="ntqsplitter.html#setResizeMode">setResizeMode</a>( t2, TQSplitter::KeepSize ); <a name="x1299"></a> s2-><a href="ntqsplitter.html#moveToFirst">moveToFirst</a>( t2 ); <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-><a href="ntqwidget.html#setBackgroundColor">setBackgroundColor</a>( TQt::red ); + t3-><a href="tqwidget.html#setBackgroundColor">setBackgroundColor</a>( TQt::red ); Test *t4 = new Test( s3, "bottomMiddle" ); - t4-><a href="ntqwidget.html#setBackgroundColor">setBackgroundColor</a>( TQt::white ); + t4-><a href="tqwidget.html#setBackgroundColor">setBackgroundColor</a>( TQt::white ); Test *t5 = new Test( s3, "bottomRight" ); -<a name="x1305"></a> t5-><a href="ntqwidget.html#setMaximumHeight">setMaximumHeight</a>( 250 ); - t5-><a href="ntqwidget.html#setMinimumSize">setMinimumSize</a>( 80, 50 ); - t5-><a href="ntqwidget.html#setBackgroundColor">setBackgroundColor</a>( TQt::yellow ); +<a name="x1305"></a> t5-><a href="tqwidget.html#setMaximumHeight">setMaximumHeight</a>( 250 ); + t5-><a href="tqwidget.html#setMinimumSize">setMinimumSize</a>( 80, 50 ); + t5-><a href="tqwidget.html#setBackgroundColor">setBackgroundColor</a>( TQt::yellow ); #ifdef TQ_WS_QWS // TQt/Embedded XOR drawing not yet implemented. @@ -131,8 +131,8 @@ int main( int argc, char ** argv ) s3-><a href="ntqsplitter.html#setOpaqueResize">setOpaqueResize</a>( TRUE ); a.<a href="ntqapplication.html#setMainWidget">setMainWidget</a>( s1 ); - s1-><a href="ntqwidget.html#setCaption">setCaption</a>("TQt Example - Splitters"); - s1-><a href="ntqwidget.html#show">show</a>(); + s1-><a href="tqwidget.html#setCaption">setCaption</a>("TQt Example - Splitters"); + s1-><a href="tqwidget.html#show">show</a>(); int result = a.<a href="ntqapplication.html#exec">exec</a>(); delete s1; return result; |