summaryrefslogtreecommitdiffstats
path: root/doc/html/aclock-example.html
diff options
context:
space:
mode:
authorMichele Calgaro <michele.calgaro@yahoo.it>2024-07-15 19:08:22 +0900
committerMichele Calgaro <michele.calgaro@yahoo.it>2024-07-18 09:31:41 +0900
commita30f5359f03c3017fa19a6770fab32d25d22cb87 (patch)
treecb365dd7a1c3666e3f972c6cad04be7b8e846cba /doc/html/aclock-example.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 <michele.calgaro@yahoo.it>
Diffstat (limited to 'doc/html/aclock-example.html')
-rw-r--r--doc/html/aclock-example.html54
1 files changed, 27 insertions, 27 deletions
diff --git a/doc/html/aclock-example.html b/doc/html/aclock-example.html
index 06360b92c..e0f5d3839 100644
--- a/doc/html/aclock-example.html
+++ b/doc/html/aclock-example.html
@@ -62,10 +62,10 @@ public:
protected:
void updateMask();
- void paintEvent( <a href="qpaintevent.html">TQPaintEvent</a> *);
+ void paintEvent( <a href="tqpaintevent.html">TQPaintEvent</a> *);
void mousePressEvent( <a href="qmouseevent.html">TQMouseEvent</a> *);
void mouseMoveEvent( <a href="qmouseevent.html">TQMouseEvent</a> *);
- void drawClock( <a href="ntqpainter.html">TQPainter</a>* );
+ void drawClock( <a href="tqpainter.html">TQPainter</a>* );
private slots:
void timeout();
@@ -97,7 +97,7 @@ private:
#include "aclock.h"
#include &lt;<a href="tqtimer-h.html">tqtimer.h</a>&gt;
-#include &lt;<a href="qpainter-h.html">ntqpainter.h</a>&gt;
+#include &lt;<a href="tqpainter-h.html">tqpainter.h</a>&gt;
#include &lt;<a href="tqbitmap-h.html">tqbitmap.h</a>&gt;
//
@@ -158,12 +158,12 @@ void <a name="f386"></a>AnalogClock::timeout()
}
-void AnalogClock::<a href="tqwidget.html#paintEvent">paintEvent</a>( <a href="qpaintevent.html">TQPaintEvent</a> * )
+void AnalogClock::<a href="tqwidget.html#paintEvent">paintEvent</a>( <a href="tqpaintevent.html">TQPaintEvent</a> * )
{
if ( <a href="tqwidget.html#autoMask">autoMask</a>() )
return;
- <a href="ntqpainter.html">TQPainter</a> paint( this );
-<a name="x1190"></a> paint.<a href="ntqpainter.html#setBrush">setBrush</a>( <a href="tqwidget.html#colorGroup">colorGroup</a>().foreground() );
+ <a href="tqpainter.html">TQPainter</a> paint( this );
+<a name="x1190"></a> paint.<a href="tqpainter.html#setBrush">setBrush</a>( <a href="tqwidget.html#colorGroup">colorGroup</a>().foreground() );
drawClock( &amp;paint );
}
@@ -175,14 +175,14 @@ void AnalogClock::updateMask() // paint clock mask
<a href="tqbitmap.html">TQBitmap</a> bm( <a href="tqwidget.html#size">size</a>() );
bm.<a href="ntqpixmap.html#fill">fill</a>( color0 ); //transparent
- <a href="ntqpainter.html">TQPainter</a> paint;
-<a name="x1183"></a> paint.<a href="ntqpainter.html#begin">begin</a>( &amp;bm, this );
- paint.<a href="ntqpainter.html#setBrush">setBrush</a>( color1 ); // use non-transparent color
- paint.<a href="ntqpainter.html#setPen">setPen</a>( color1 );
+ <a href="tqpainter.html">TQPainter</a> paint;
+<a name="x1183"></a> paint.<a href="tqpainter.html#begin">begin</a>( &amp;bm, this );
+ paint.<a href="tqpainter.html#setBrush">setBrush</a>( color1 ); // use non-transparent color
+ paint.<a href="tqpainter.html#setPen">setPen</a>( color1 );
drawClock( &amp;paint );
-<a name="x1186"></a> paint.<a href="ntqpainter.html#end">end</a>();
+<a name="x1186"></a> paint.<a href="tqpainter.html#end">end</a>();
<a href="tqwidget.html#setMask">setMask</a>( bm );
}
@@ -191,37 +191,37 @@ void AnalogClock::updateMask() // paint clock mask
// the a centered square, as big as possible. The painter's pen and
// brush colors are used.
//
-void <a name="f387"></a>AnalogClock::drawClock( <a href="ntqpainter.html">TQPainter</a> *paint )
+void <a name="f387"></a>AnalogClock::drawClock( <a href="tqpainter.html">TQPainter</a> *paint )
{
-<a name="x1189"></a> paint-&gt;<a href="ntqpainter.html#save">save</a>();
+<a name="x1189"></a> paint-&gt;<a href="tqpainter.html#save">save</a>();
-<a name="x1193"></a> paint-&gt;<a href="ntqpainter.html#setWindow">setWindow</a>( -500,-500, 1000,1000 );
+<a name="x1193"></a> paint-&gt;<a href="tqpainter.html#setWindow">setWindow</a>( -500,-500, 1000,1000 );
-<a name="x1194"></a> <a href="ntqrect.html">TQRect</a> v = paint-&gt;<a href="ntqpainter.html#viewport">viewport</a>();
+<a name="x1194"></a> <a href="ntqrect.html">TQRect</a> v = paint-&gt;<a href="tqpainter.html#viewport">viewport</a>();
int d = TQMIN( v.<a href="ntqrect.html#width">width</a>(), v.<a href="ntqrect.html#height">height</a>() );
-<a name="x1198"></a><a name="x1192"></a> paint-&gt;<a href="ntqpainter.html#setViewport">setViewport</a>( v.<a href="ntqrect.html#left">left</a>() + (v.<a href="ntqrect.html#width">width</a>()-d)/2,
+<a name="x1198"></a><a name="x1192"></a> paint-&gt;<a href="tqpainter.html#setViewport">setViewport</a>( v.<a href="ntqrect.html#left">left</a>() + (v.<a href="ntqrect.html#width">width</a>()-d)/2,
<a name="x1199"></a> v.<a href="ntqrect.html#top">top</a>() + (v.<a href="ntqrect.html#height">height</a>()-d)/2, d, d );
<a href="ntqpointarray.html">TQPointArray</a> pts;
- paint-&gt;<a href="ntqpainter.html#save">save</a>();
-<a name="x1188"></a> paint-&gt;<a href="ntqpainter.html#rotate">rotate</a>( 30*(time.hour()%12-3) + time.minute()/2 );
+ paint-&gt;<a href="tqpainter.html#save">save</a>();
+<a name="x1188"></a> paint-&gt;<a href="tqpainter.html#rotate">rotate</a>( 30*(time.hour()%12-3) + time.minute()/2 );
<a name="x1196"></a> pts.setPoints( 4, -20,0, 0,-20, 300,0, 0,20 );
-<a name="x1184"></a> paint-&gt;<a href="ntqpainter.html#drawConvexPolygon">drawConvexPolygon</a>( pts );
-<a name="x1187"></a> paint-&gt;<a href="ntqpainter.html#restore">restore</a>();
+<a name="x1184"></a> paint-&gt;<a href="tqpainter.html#drawConvexPolygon">drawConvexPolygon</a>( pts );
+<a name="x1187"></a> paint-&gt;<a href="tqpainter.html#restore">restore</a>();
- paint-&gt;<a href="ntqpainter.html#save">save</a>();
- paint-&gt;<a href="ntqpainter.html#rotate">rotate</a>( (time.minute()-15)*6 );
+ paint-&gt;<a href="tqpainter.html#save">save</a>();
+ paint-&gt;<a href="tqpainter.html#rotate">rotate</a>( (time.minute()-15)*6 );
pts.setPoints( 4, -10,0, 0,-10, 400,0, 0,10 );
- paint-&gt;<a href="ntqpainter.html#drawConvexPolygon">drawConvexPolygon</a>( pts );
- paint-&gt;<a href="ntqpainter.html#restore">restore</a>();
+ paint-&gt;<a href="tqpainter.html#drawConvexPolygon">drawConvexPolygon</a>( pts );
+ paint-&gt;<a href="tqpainter.html#restore">restore</a>();
for ( int i=0; i&lt;12; i++ ) {
-<a name="x1185"></a> paint-&gt;<a href="ntqpainter.html#drawLine">drawLine</a>( 440,0, 460,0 );
- paint-&gt;<a href="ntqpainter.html#rotate">rotate</a>( 30 );
+<a name="x1185"></a> paint-&gt;<a href="tqpainter.html#drawLine">drawLine</a>( 440,0, 460,0 );
+ paint-&gt;<a href="tqpainter.html#rotate">rotate</a>( 30 );
}
- paint-&gt;<a href="ntqpainter.html#restore">restore</a>();
+ paint-&gt;<a href="tqpainter.html#restore">restore</a>();
}