summaryrefslogtreecommitdiffstats
path: root/doc/html/tutorial1-02.html
diff options
context:
space:
mode:
authorMichele Calgaro <michele.calgaro@yahoo.it>2024-06-02 23:07:22 +0900
committerMichele Calgaro <michele.calgaro@yahoo.it>2024-06-02 23:22:42 +0900
commit8ac0e970e4464d9f8f73c0fb34a178ff135be8c3 (patch)
treeb95884617b9a37accc843676d5d42be4116a3f54 /doc/html/tutorial1-02.html
parent68b81013e8668f50fc18b7e26a520ec93a7a1251 (diff)
downloadtqt-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-02.html')
-rw-r--r--doc/html/tutorial1-02.html12
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>( &amp;quit, TQ_SIGNAL(<a href="ntqbutton.html#clicked">clicked</a>()), &amp;a, TQ_SLOT(<a href="ntqapplication.html#quit">quit</a>()) );
a.<a href="ntqapplication.html#setMainWidget">setMainWidget</a>( &amp;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.