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/tutorial1-03.html | |
parent | 68b81013e8668f50fc18b7e26a520ec93a7a1251 (diff) | |
download | tqt-8ac0e970.tar.gz tqt-8ac0e970.zip |
Rename ntqwidget* related files to equivalent tqwidget*
Signed-off-by: Michele Calgaro <michele.calgaro@yahoo.it>
Diffstat (limited to 'doc/html/tutorial1-03.html')
-rw-r--r-- | doc/html/tutorial1-03.html | 16 |
1 files changed, 8 insertions, 8 deletions
diff --git a/doc/html/tutorial1-03.html b/doc/html/tutorial1-03.html index 9b04261cd..139746c3f 100644 --- a/doc/html/tutorial1-03.html +++ b/doc/html/tutorial1-03.html @@ -51,15 +51,15 @@ int main( int argc, char **argv ) <a href="ntqapplication.html">TQApplication</a> a( argc, argv ); <a href="ntqvbox.html">TQVBox</a> box; - box.<a href="ntqwidget.html#resize">resize</a>( 200, 120 ); + box.<a href="tqwidget.html#resize">resize</a>( 200, 120 ); <a href="ntqpushbutton.html">TQPushButton</a> quit( "Quit", &box ); - quit.<a href="ntqwidget.html#setFont">setFont</a>( TQFont( "Times", 18, TQFont::Bold ) ); + quit.<a href="tqwidget.html#setFont">setFont</a>( TQFont( "Times", 18, TQFont::Bold ) ); TQObject::<a href="tqobject.html#connect">connect</a>( &quit, TQ_SIGNAL(<a href="ntqbutton.html#clicked">clicked</a>()), &a, TQ_SLOT(<a href="ntqapplication.html#quit">quit</a>()) ); a.<a href="ntqapplication.html#setMainWidget">setMainWidget</a>( &box ); - box.<a href="ntqwidget.html#show">show</a>(); + box.<a href="tqwidget.html#show">show</a>(); return a.<a href="ntqapplication.html#exec">exec</a>(); } @@ -76,8 +76,8 @@ int main( int argc, char **argv ) </pre> <p> Here we simply create a vertical box container. The <a href="ntqvbox.html">TQVBox</a> arranges its child widgets in a vertical row, one above the other, handing out -space according to each child's <a href="ntqwidget.html#sizePolicy">TQWidget::sizePolicy</a>(). -<p> <pre> <a name="x2300"></a> box.<a href="ntqwidget.html#resize">resize</a>( 200, 120 ); +space according to each child's <a href="tqwidget.html#sizePolicy">TQWidget::sizePolicy</a>(). +<p> <pre> <a name="x2300"></a> box.<a href="tqwidget.html#resize">resize</a>( 200, 120 ); </pre> <p> We set its width to 200 pixels and the height to 120 pixels. <p> <pre> <a href="ntqpushbutton.html">TQPushButton</a> quit( "Quit", &box ); @@ -89,16 +89,16 @@ displayed, it is clipped by its parent's bounds. <p> The parent widget, the TQVBox, automatically adds the child centered in its box. Because nothing else is added, the button gets all the space the parent has. -<p> <pre> <a name="x2302"></a> box.<a href="ntqwidget.html#show">show</a>(); +<p> <pre> <a name="x2302"></a> box.<a href="tqwidget.html#show">show</a>(); </pre> <p> When a parent widget is shown, it will call show for all its children -(except those on which you have done an explicit <a href="ntqwidget.html#hide">TQWidget::hide</a>()). +(except those on which you have done an explicit <a href="tqwidget.html#hide">TQWidget::hide</a>()). <p> <h2> Behavior </h2> <a name="2"></a><p> The button no longer fills the entire widget. Instead, it gets a "natural" size. This is because there is now a new top-level widget, which uses the button's size hint and size change policy to set the -button's size and position. (See <a href="ntqwidget.html#sizeHint">TQWidget::sizeHint</a>() and <a href="ntqwidget.html#setSizePolicy">TQWidget::setSizePolicy</a>() for more information about these functions.) +button's size and position. (See <a href="tqwidget.html#sizeHint">TQWidget::sizeHint</a>() and <a href="tqwidget.html#setSizePolicy">TQWidget::setSizePolicy</a>() for more information about these functions.) <p> (See <a href="tutorial1-01.html#compiling">Compiling</a> for how to create a makefile and build the application.) <p> <h2> Exercises |