summaryrefslogtreecommitdiffstats
path: root/doc/html/tutorial1-08.html
diff options
context:
space:
mode:
authorMichele Calgaro <[email protected]>2024-07-15 19:08:22 +0900
committerMichele Calgaro <[email protected]>2024-07-18 09:31:41 +0900
commita30f5359f03c3017fa19a6770fab32d25d22cb87 (patch)
treecb365dd7a1c3666e3f972c6cad04be7b8e846cba /doc/html/tutorial1-08.html
parent25ad1267da6916e738a126ff5a9b41cd686adfc6 (diff)
downloadtqt3-a30f5359f03c3017fa19a6770fab32d25d22cb87.tar.gz
tqt3-a30f5359f03c3017fa19a6770fab32d25d22cb87.zip
Rename graphics class nt* related files to equivalent tq* (part 1)
Signed-off-by: Michele Calgaro <[email protected]>
Diffstat (limited to 'doc/html/tutorial1-08.html')
-rw-r--r--doc/html/tutorial1-08.html12
1 files changed, 6 insertions, 6 deletions
diff --git a/doc/html/tutorial1-08.html b/doc/html/tutorial1-08.html
index a01d71a26..4eda29b4d 100644
--- a/doc/html/tutorial1-08.html
+++ b/doc/html/tutorial1-08.html
@@ -105,7 +105,7 @@ function using <a href="ntqapplication.html#qInstallMsgHandler">::qInstallMsgHan
<p> For the time being, CannonField only contains an angle value for which we
provide an interface using the same idiom as for value in LCDRange.
<p> <pre> protected:
- void paintEvent( <a href="qpaintevent.html">TQPaintEvent</a> * );
+ void paintEvent( <a href="tqpaintevent.html">TQPaintEvent</a> * );
</pre>
<p> This is the second of the many event handlers in TQWidget that we
encounter. This virtual function is called by TQt whenever a widget needs
@@ -152,20 +152,20 @@ results in a call to the paint event function of the widget.
<p> Finally, we emit the angleChanged() signal to tell the outside world
that the angle has changed. The <tt>emit</tt> keyword is unique to TQt and
not regular C++ syntax. In fact, it is a macro.
-<p> <pre> <a name="x2336"></a>void CannonField::<a href="tqwidget.html#paintEvent">paintEvent</a>( <a href="qpaintevent.html">TQPaintEvent</a> * )
+<p> <pre> <a name="x2336"></a>void CannonField::<a href="tqwidget.html#paintEvent">paintEvent</a>( <a href="tqpaintevent.html">TQPaintEvent</a> * )
{
<a href="tqstring.html">TQString</a> s = "Angle = " + TQString::number( ang );
- <a href="ntqpainter.html">TQPainter</a> p( this );
- <a name="x2335"></a> p.<a href="ntqpainter.html#drawText">drawText</a>( 200, 200, s );
+ <a href="tqpainter.html">TQPainter</a> p( this );
+ <a name="x2335"></a> p.<a href="tqpainter.html#drawText">drawText</a>( 200, 200, s );
}
</pre>
<p> This is our first attempt to write a paint event handler. The event
-argument contains a description of the paint event. <a href="qpaintevent.html">TQPaintEvent</a>
+argument contains a description of the paint event. <a href="tqpaintevent.html">TQPaintEvent</a>
contains the region in the widget that must be updated. For the time
being, we will be lazy and just paint everything.
<p> Our code displays the angle value in the widget at a fixed position.
First we create a <a href="tqstring.html">TQString</a> with some text and the angle; then we create
-a <a href="ntqpainter.html">TQPainter</a> operating on this widget and use it to paint the string.
+a <a href="tqpainter.html">TQPainter</a> operating on this widget and use it to paint the string.
We'll come back to TQPainter later; it can do a great many things.
<p> <h3> <a href="t8-main-cpp.html">t8/main.cpp</a>
</h3>