diff options
Diffstat (limited to 'doc/html/tutorial1-02.html')
-rw-r--r-- | doc/html/tutorial1-02.html | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/doc/html/tutorial1-02.html b/doc/html/tutorial1-02.html index 4109813fb..aaf95ee6b 100644 --- a/doc/html/tutorial1-02.html +++ b/doc/html/tutorial1-02.html @@ -52,13 +52,13 @@ int main( int argc, char **argv ) <a href="ntqapplication.html">TQApplication</a> a( argc, argv ); <a href="ntqpushbutton.html">TQPushButton</a> quit( "Quit", 0 ); - quit.<a href="ntqwidget.html#resize">resize</a>( 75, 30 ); - quit.<a href="ntqwidget.html#setFont">setFont</a>( TQFont( "Times", 18, TQFont::Bold ) ); + quit.<a href="tqwidget.html#resize">resize</a>( 75, 30 ); + 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>( &quit ); - quit.<a href="ntqwidget.html#show">show</a>(); + quit.<a href="tqwidget.html#show">show</a>(); return a.<a href="ntqapplication.html#exec">exec</a>(); } </pre> @@ -77,12 +77,12 @@ loading and using fonts has been highly optimized. <p> This time, the button says "Quit" and that's exactly what the program will do when the user clicks the button. This is not a coincidence. We still pass 0 as the parent, since the button is a top-level window. -<p> <pre> <a name="x2292"></a> quit.<a href="ntqwidget.html#resize">resize</a>( 75, 30 ); +<p> <pre> <a name="x2292"></a> quit.<a href="tqwidget.html#resize">resize</a>( 75, 30 ); </pre> <p> We've chosen another size for the button since the text is a bit shorter than "Hello world!". We could also have used <a href="ntqfontmetrics.html">TQFontMetrics</a> to set right size. -<p> <pre> <a name="x2293"></a> quit.<a href="ntqwidget.html#setFont">setFont</a>( TQFont( "Times", 18, TQFont::Bold ) ); +<p> <pre> <a name="x2293"></a> quit.<a href="tqwidget.html#setFont">setFont</a>( TQFont( "Times", 18, TQFont::Bold ) ); </pre> <p> Here we choose a new font for the button, an 18-point bold font from the Times family. Note that we create the font on the spot. @@ -95,7 +95,7 @@ with the connect() function in the socket library. <p> This line establishes a one-way connection between two TQt objects (objects that inherit TQObject, directly or indirectly). Every TQt object can have both <tt>signals</tt> (to send messages) and <tt>slots</tt> (to receive messages). All -widgets are TQt objects. They inherit <a href="ntqwidget.html">TQWidget</a> which in turn inherits +widgets are TQt objects. They inherit <a href="tqwidget.html">TQWidget</a> which in turn inherits TQObject. <p> Here, the <em>clicked()</em> signal of <em>quit</em> is connected to the <em>quit()</em> slot of <em>a</em>, so that when the button is clicked, the application quits. |