diff options
Diffstat (limited to 'doc/html/tutorial1-03.html')
-rw-r--r-- | doc/html/tutorial1-03.html | 48 |
1 files changed, 24 insertions, 24 deletions
diff --git a/doc/html/tutorial1-03.html b/doc/html/tutorial1-03.html index b760c089c..f7f46a23b 100644 --- a/doc/html/tutorial1-03.html +++ b/doc/html/tutorial1-03.html @@ -41,27 +41,27 @@ body { background: #ffffff; color: black; } ** ****************************************************************/ -#include <<a href="qapplication-h.html">qapplication.h</a>> -#include <<a href="qpushbutton-h.html">qpushbutton.h</a>> -#include <<a href="qfont-h.html">qfont.h</a>> -#include <<a href="qvbox-h.html">qvbox.h</a>> +#include <<a href="qapplication-h.html">ntqapplication.h</a>> +#include <<a href="qpushbutton-h.html">ntqpushbutton.h</a>> +#include <<a href="qfont-h.html">ntqfont.h</a>> +#include <<a href="qvbox-h.html">ntqvbox.h</a>> 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="qvbox.html">TQVBox</a> box; - box.<a href="qwidget.html#resize">resize</a>( 200, 120 ); + <a href="ntqvbox.html">TQVBox</a> box; + box.<a href="ntqwidget.html#resize">resize</a>( 200, 120 ); - <a href="qpushbutton.html">TQPushButton</a> quit( "Quit", &box ); - quit.<a href="qwidget.html#setFont">setFont</a>( TQFont( "Times", 18, TQFont::Bold ) ); + <a href="ntqpushbutton.html">TQPushButton</a> quit( "Quit", &box ); + quit.<a href="ntqwidget.html#setFont">setFont</a>( TQFont( "Times", 18, TQFont::Bold ) ); - TQObject::<a href="qobject.html#connect">connect</a>( &quit, SIGNAL(<a href="qbutton.html#clicked">clicked</a>()), &a, SLOT(<a href="qapplication.html#quit">quit</a>()) ); + TQObject::<a href="ntqobject.html#connect">connect</a>( &quit, SIGNAL(<a href="ntqbutton.html#clicked">clicked</a>()), &a, SLOT(<a href="ntqapplication.html#quit">quit</a>()) ); - a.<a href="qapplication.html#setMainWidget">setMainWidget</a>( &box ); - box.<a href="qwidget.html#show">show</a>(); + a.<a href="ntqapplication.html#setMainWidget">setMainWidget</a>( &box ); + box.<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> @@ -69,36 +69,36 @@ int main( int argc, char **argv ) <p> <h2> Line-by-line Walkthrough </h2> -<a name="1"></a><p> <pre> #include <<a href="qvbox-h.html">qvbox.h</a>> +<a name="1"></a><p> <pre> #include <<a href="qvbox-h.html">ntqvbox.h</a>> </pre> -<p> We add an include of qvbox.h to get the layout class we'll use. -<p> <pre> <a href="qvbox.html">TQVBox</a> box; +<p> We add an include of ntqvbox.h to get the layout class we'll use. +<p> <pre> <a href="ntqvbox.html">TQVBox</a> box; </pre> -<p> Here we simply create a vertical box container. The <a href="qvbox.html">TQVBox</a> arranges +<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="qwidget.html#sizePolicy">TQWidget::sizePolicy</a>(). -<p> <pre> <a name="x2300"></a> box.<a href="qwidget.html#resize">resize</a>( 200, 120 ); +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 ); </pre> <p> We set its width to 200 pixels and the height to 120 pixels. -<p> <pre> <a href="qpushbutton.html">TQPushButton</a> quit( "Quit", &box ); +<p> <pre> <a href="ntqpushbutton.html">TQPushButton</a> quit( "Quit", &box ); </pre> <p> A child is born. -<p> This <a href="qpushbutton.html">TQPushButton</a> is created with both a text ("Quit") and a parent +<p> This <a href="ntqpushbutton.html">TQPushButton</a> is created with both a text ("Quit") and a parent (box). A child widget is always on top of its parent. When 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="qwidget.html#show">show</a>(); +<p> <pre> <a name="x2302"></a> box.<a href="ntqwidget.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="qwidget.html#hide">TQWidget::hide</a>()). +(except those on which you have done an explicit <a href="ntqwidget.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="qwidget.html#sizeHint">TQWidget::sizeHint</a>() and <a href="qwidget.html#setSizePolicy">TQWidget::setSizePolicy</a>() for more information about these functions.) +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.) <p> (See <a href="tutorial1-01.html#compiling">Compiling</a> for how to create a makefile and build the application.) <p> <h2> Exercises |