diff options
Diffstat (limited to 'doc/html/tutorial1-04.html')
-rw-r--r-- | doc/html/tutorial1-04.html | 44 |
1 files changed, 22 insertions, 22 deletions
diff --git a/doc/html/tutorial1-04.html b/doc/html/tutorial1-04.html index fc23a6f94..4e69e7500 100644 --- a/doc/html/tutorial1-04.html +++ b/doc/html/tutorial1-04.html @@ -46,22 +46,22 @@ minimum and maximum sizes of a widget, and introduces widget names. #include <<a href="qfont-h.html">ntqfont.h</a>> -class MyWidget : public <a href="ntqwidget.html">TQWidget</a> +class MyWidget : public <a href="tqwidget.html">TQWidget</a> { public: - MyWidget( <a href="ntqwidget.html">TQWidget</a> *parent=0, const char *name=0 ); + MyWidget( <a href="tqwidget.html">TQWidget</a> *parent=0, const char *name=0 ); }; -<a name="f552"></a>MyWidget::MyWidget( <a href="ntqwidget.html">TQWidget</a> *parent, const char *name ) - : <a href="ntqwidget.html">TQWidget</a>( parent, name ) +<a name="f552"></a>MyWidget::MyWidget( <a href="tqwidget.html">TQWidget</a> *parent, const char *name ) + : <a href="tqwidget.html">TQWidget</a>( parent, name ) { - <a href="ntqwidget.html#setMinimumSize">setMinimumSize</a>( 200, 120 ); - <a href="ntqwidget.html#setMaximumSize">setMaximumSize</a>( 200, 120 ); + <a href="tqwidget.html#setMinimumSize">setMinimumSize</a>( 200, 120 ); + <a href="tqwidget.html#setMaximumSize">setMaximumSize</a>( 200, 120 ); <a href="ntqpushbutton.html">TQPushButton</a> *quit = new <a href="ntqpushbutton.html">TQPushButton</a>( "Quit", this, "quit" ); - quit-><a href="ntqwidget.html#setGeometry">setGeometry</a>( 62, 40, 75, 30 ); - quit-><a href="ntqwidget.html#setFont">setFont</a>( TQFont( "Times", 18, TQFont::Bold ) ); + quit-><a href="tqwidget.html#setGeometry">setGeometry</a>( 62, 40, 75, 30 ); + quit-><a href="tqwidget.html#setFont">setFont</a>( TQFont( "Times", 18, TQFont::Bold ) ); <a href="tqobject.html#connect">connect</a>( quit, TQ_SIGNAL(<a href="ntqbutton.html#clicked">clicked</a>()), tqApp, TQ_SLOT(<a href="ntqapplication.html#quit">quit</a>()) ); } @@ -72,9 +72,9 @@ int main( int argc, char **argv ) <a href="ntqapplication.html">TQApplication</a> a( argc, argv ); MyWidget w; - w.<a href="ntqwidget.html#setGeometry">setGeometry</a>( 100, 100, 200, 120 ); + w.<a href="tqwidget.html#setGeometry">setGeometry</a>( 100, 100, 200, 120 ); a.<a href="ntqapplication.html#setMainWidget">setMainWidget</a>( &w ); - w.<a href="ntqwidget.html#show">show</a>(); + w.<a href="tqwidget.html#show">show</a>(); return a.<a href="ntqapplication.html#exec">exec</a>(); } </pre> @@ -83,13 +83,13 @@ int main( int argc, char **argv ) <p> <h2> Line-by-line Walkthrough </h2> -<a name="1"></a><p> <pre> class MyWidget : public <a href="ntqwidget.html">TQWidget</a> +<a name="1"></a><p> <pre> class MyWidget : public <a href="tqwidget.html">TQWidget</a> { public: - MyWidget( <a href="ntqwidget.html">TQWidget</a> *parent=0, const char *name=0 ); + MyWidget( <a href="tqwidget.html">TQWidget</a> *parent=0, const char *name=0 ); }; </pre> -<p> Here we create a new class. Because this class inherits from <a href="ntqwidget.html">TQWidget</a>, +<p> Here we create a new class. Because this class inherits from <a href="tqwidget.html">TQWidget</a>, the new class is a widget and may be a top level window or a child widget (like the push button in Chapter 3). <p> This class has only one member, a constructor (in addition to the @@ -103,22 +103,22 @@ defaults to be a top-level window. that appears in the window's title bar or in the button. It is a name associated with a widget to make it possible to <a href="tqobject.html#queryList">look up</a> this widget later, and there is also a <a href="tqobject.html#dumpObjectTree">handy debugging function</a> that will list a complete widget hierarchy. -<p> <pre> MyWidget::MyWidget( <a href="ntqwidget.html">TQWidget</a> *parent, const char *name ) - : <a href="ntqwidget.html">TQWidget</a>( parent, name ) +<p> <pre> MyWidget::MyWidget( <a href="tqwidget.html">TQWidget</a> *parent, const char *name ) + : <a href="tqwidget.html">TQWidget</a>( parent, name ) </pre> <p> The implementation of the constructor starts here. Like most widgets, -it just passes on the <tt>parent</tt> and <tt>name</tt> to the <a href="ntqwidget.html">TQWidget</a> +it just passes on the <tt>parent</tt> and <tt>name</tt> to the <a href="tqwidget.html">TQWidget</a> constructor. <p> <pre> { - <a href="ntqwidget.html#setMinimumSize">setMinimumSize</a>( 200, 120 ); - <a href="ntqwidget.html#setMaximumSize">setMaximumSize</a>( 200, 120 ); + <a href="tqwidget.html#setMinimumSize">setMinimumSize</a>( 200, 120 ); + <a href="tqwidget.html#setMaximumSize">setMaximumSize</a>( 200, 120 ); </pre> <p> Because this widget doesn't know how to handle resizing, we fix its size by setting the minimum and maximum to be equal. In the next chapter we will show how a widget can respond to resize event from the user. <p> <pre> <a href="ntqpushbutton.html">TQPushButton</a> *quit = new <a href="ntqpushbutton.html">TQPushButton</a>( "Quit", this, "quit" ); - <a name="x2308"></a> quit-><a href="ntqwidget.html#setGeometry">setGeometry</a>( 62, 40, 75, 30 ); - <a name="x2307"></a> quit-><a href="ntqwidget.html#setFont">setFont</a>( TQFont( "Times", 18, TQFont::Bold ) ); + <a name="x2308"></a> quit-><a href="tqwidget.html#setGeometry">setGeometry</a>( 62, 40, 75, 30 ); + <a name="x2307"></a> quit-><a href="tqwidget.html#setFont">setFont</a>( TQFont( "Times", 18, TQFont::Bold ) ); </pre> <p> Here we create and set up a child widget of this widget (the new widget's parent is <tt>this</tt>) which has the widget name "quit". The widget @@ -148,9 +148,9 @@ MyWidget needs to talk to the application object. <a href="ntqapplication.html">TQApplication</a> a( argc, argv ); MyWidget w; - w.<a href="ntqwidget.html#setGeometry">setGeometry</a>( 100, 100, 200, 120 ); + w.<a href="tqwidget.html#setGeometry">setGeometry</a>( 100, 100, 200, 120 ); <a name="x2305"></a> a.<a href="ntqapplication.html#setMainWidget">setMainWidget</a>( &w ); - <a name="x2309"></a> w.<a href="ntqwidget.html#show">show</a>(); + <a name="x2309"></a> w.<a href="tqwidget.html#show">show</a>(); <a name="x2303"></a> return a.<a href="ntqapplication.html#exec">exec</a>(); } </pre> |