summaryrefslogtreecommitdiffstats
path: root/doc/html/scribble-example.html
diff options
context:
space:
mode:
authorMichele Calgaro <michele.calgaro@yahoo.it>2024-07-20 20:15:52 +0900
committerMichele Calgaro <michele.calgaro@yahoo.it>2024-07-21 23:04:19 +0900
commit1e9fa8e06de5da7fcc268e9cccb2d6b21c5f53a3 (patch)
tree5f1bb482f68ee0f95843fbf375cd2274acdabf25 /doc/html/scribble-example.html
parent14c414378d96f7463b989384f4a0e5dd76632b6d (diff)
downloadtqt3-1e9fa8e06de5da7fcc268e9cccb2d6b21c5f53a3.tar.gz
tqt3-1e9fa8e06de5da7fcc268e9cccb2d6b21c5f53a3.zip
Rename graphics class nt* related files to equivalent tq* (part 2)
Signed-off-by: Michele Calgaro <michele.calgaro@yahoo.it>
Diffstat (limited to 'doc/html/scribble-example.html')
-rw-r--r--doc/html/scribble-example.html48
1 files changed, 24 insertions, 24 deletions
diff --git a/doc/html/scribble-example.html b/doc/html/scribble-example.html
index 6d0ee2343..9b93e3c5a 100644
--- a/doc/html/scribble-example.html
+++ b/doc/html/scribble-example.html
@@ -51,12 +51,12 @@ in the canvas with different pens and save the result as picture.
#define SCRIBBLE_H
#include &lt;<a href="tqmainwindow-h.html">tqmainwindow.h</a>&gt;
-#include &lt;<a href="qpen-h.html">ntqpen.h</a>&gt;
-#include &lt;<a href="qpoint-h.html">ntqpoint.h</a>&gt;
-#include &lt;<a href="qpixmap-h.html">ntqpixmap.h</a>&gt;
+#include &lt;<a href="tqpen-h.html">tqpen.h</a>&gt;
+#include &lt;<a href="tqpoint-h.html">tqpoint.h</a>&gt;
+#include &lt;<a href="tqpixmap-h.html">tqpixmap.h</a>&gt;
#include &lt;<a href="tqwidget-h.html">tqwidget.h</a>&gt;
#include &lt;<a href="tqstring-h.html">tqstring.h</a>&gt;
-#include &lt;<a href="qpointarray-h.html">ntqpointarray.h</a>&gt;
+#include &lt;<a href="tqpointarray-h.html">tqpointarray.h</a>&gt;
class TQMouseEvent;
class TQResizeEvent;
@@ -72,16 +72,16 @@ public:
Canvas( <a href="tqwidget.html">TQWidget</a> *parent = 0, const char *name = 0 );
void setPenColor( const <a href="tqcolor.html">TQColor</a> &amp;c )
-<a name="x903"></a> { pen.<a href="ntqpen.html#setColor">setColor</a>( c ); }
+<a name="x903"></a> { pen.<a href="tqpen.html#setColor">setColor</a>( c ); }
void setPenWidth( int w )
-<a name="x904"></a> { pen.<a href="ntqpen.html#setWidth">setWidth</a>( w ); }
+<a name="x904"></a> { pen.<a href="tqpen.html#setWidth">setWidth</a>( w ); }
<a href="tqcolor.html">TQColor</a> penColor()
-<a name="x902"></a> { return pen.<a href="ntqpen.html#color">color</a>(); }
+<a name="x902"></a> { return pen.<a href="tqpen.html#color">color</a>(); }
int penWidth()
-<a name="x905"></a> { return pen.<a href="ntqpen.html#width">width</a>(); }
+<a name="x905"></a> { return pen.<a href="tqpen.html#width">width</a>(); }
void save( const <a href="tqstring.html">TQString</a> &amp;filename, const <a href="tqstring.html">TQString</a> &amp;format );
@@ -94,12 +94,12 @@ protected:
void resizeEvent( <a href="qresizeevent.html">TQResizeEvent</a> *e );
void paintEvent( <a href="tqpaintevent.html">TQPaintEvent</a> *e );
- <a href="ntqpen.html">TQPen</a> pen;
- <a href="ntqpointarray.html">TQPointArray</a> polyline;
+ <a href="tqpen.html">TQPen</a> pen;
+ <a href="tqpointarray.html">TQPointArray</a> polyline;
bool mousePressed;
- <a href="ntqpixmap.html">TQPixmap</a> buffer;
+ <a href="tqpixmap.html">TQPixmap</a> buffer;
};
@@ -148,8 +148,8 @@ protected slots:
#include &lt;<a href="tqtoolbutton-h.html">tqtoolbutton.h</a>&gt;
#include &lt;<a href="qspinbox-h.html">ntqspinbox.h</a>&gt;
#include &lt;<a href="tqtooltip-h.html">tqtooltip.h</a>&gt;
-#include &lt;<a href="qrect-h.html">ntqrect.h</a>&gt;
-#include &lt;<a href="qpoint-h.html">ntqpoint.h</a>&gt;
+#include &lt;<a href="tqrect-h.html">tqrect.h</a>&gt;
+#include &lt;<a href="tqpoint-h.html">tqpoint.h</a>&gt;
#include &lt;<a href="tqcolordialog-h.html">tqcolordialog.h</a>&gt;
#include &lt;<a href="tqfiledialog-h.html">tqfiledialog.h</a>&gt;
#include &lt;<a href="qcursor-h.html">ntqcursor.h</a>&gt;
@@ -208,14 +208,14 @@ void <a name="f340"></a>Canvas::clearScreen()
<a name="x917"></a> painter.<a href="tqpainter.html#drawPolyline">drawPolyline</a>( polyline );
<a name="x918"></a> painter.<a href="tqpainter.html#end">end</a>();
- <a href="ntqrect.html">TQRect</a> r = polyline.boundingRect();
-<a name="x928"></a> r = r.<a href="ntqrect.html#normalize">normalize</a>();
-<a name="x931"></a><a name="x927"></a> r.<a href="ntqrect.html#setLeft">setLeft</a>( r.<a href="ntqrect.html#left">left</a>() - penWidth() );
-<a name="x934"></a><a name="x933"></a> r.<a href="ntqrect.html#setTop">setTop</a>( r.<a href="ntqrect.html#top">top</a>() - penWidth() );
-<a name="x932"></a><a name="x929"></a> r.<a href="ntqrect.html#setRight">setRight</a>( r.<a href="ntqrect.html#right">right</a>() + penWidth() );
-<a name="x930"></a><a name="x925"></a> r.<a href="ntqrect.html#setBottom">setBottom</a>( r.<a href="ntqrect.html#bottom">bottom</a>() + penWidth() );
+ <a href="tqrect.html">TQRect</a> r = polyline.boundingRect();
+<a name="x928"></a> r = r.<a href="tqrect.html#normalize">normalize</a>();
+<a name="x931"></a><a name="x927"></a> r.<a href="tqrect.html#setLeft">setLeft</a>( r.<a href="tqrect.html#left">left</a>() - penWidth() );
+<a name="x934"></a><a name="x933"></a> r.<a href="tqrect.html#setTop">setTop</a>( r.<a href="tqrect.html#top">top</a>() - penWidth() );
+<a name="x932"></a><a name="x929"></a> r.<a href="tqrect.html#setRight">setRight</a>( r.<a href="tqrect.html#right">right</a>() + penWidth() );
+<a name="x930"></a><a name="x925"></a> r.<a href="tqrect.html#setBottom">setBottom</a>( r.<a href="tqrect.html#bottom">bottom</a>() + penWidth() );
-<a name="x937"></a><a name="x936"></a><a name="x926"></a> <a href="tqimage.html#bitBlt">bitBlt</a>( this, r.<a href="ntqrect.html#x">x</a>(), r.<a href="ntqrect.html#y">y</a>(), &amp;buffer, r.<a href="ntqrect.html#x">x</a>(), r.<a href="ntqrect.html#y">y</a>(), r.<a href="ntqrect.html#width">width</a>(), r.<a href="ntqrect.html#height">height</a>() );
+<a name="x937"></a><a name="x936"></a><a name="x926"></a> <a href="tqimage.html#bitBlt">bitBlt</a>( this, r.<a href="tqrect.html#x">x</a>(), r.<a href="tqrect.html#y">y</a>(), &amp;buffer, r.<a href="tqrect.html#x">x</a>(), r.<a href="tqrect.html#y">y</a>(), r.<a href="tqrect.html#width">width</a>(), r.<a href="tqrect.html#height">height</a>() );
}
}
@@ -228,10 +228,10 @@ void <a name="f340"></a>Canvas::clearScreen()
int h = <a href="tqwidget.html#height">height</a>() &gt; buffer.height() ?
<a href="tqwidget.html#height">height</a>() : buffer.height();
- <a href="ntqpixmap.html">TQPixmap</a> tmp( buffer );
+ <a href="tqpixmap.html">TQPixmap</a> tmp( buffer );
buffer.resize( w, h );
buffer.fill( <a href="tqwidget.html#colorGroup">colorGroup</a>().base() );
-<a name="x922"></a><a name="x921"></a> <a href="tqimage.html#bitBlt">bitBlt</a>( &amp;buffer, 0, 0, &amp;tmp, 0, 0, tmp.<a href="ntqpixmap.html#width">width</a>(), tmp.<a href="ntqpixmap.html#height">height</a>() );
+<a name="x922"></a><a name="x921"></a> <a href="tqimage.html#bitBlt">bitBlt</a>( &amp;buffer, 0, 0, &amp;tmp, 0, 0, tmp.<a href="tqpixmap.html#width">width</a>(), tmp.<a href="tqpixmap.html#height">height</a>() );
}
<a name="x951"></a>void Canvas::<a href="tqwidget.html#paintEvent">paintEvent</a>( <a href="tqpaintevent.html">TQPaintEvent</a> *e )
@@ -240,8 +240,8 @@ void <a name="f340"></a>Canvas::clearScreen()
<a name="x920"></a> <a href="tqmemarray.html">TQMemArray</a>&lt;TQRect&gt; rects = e-&gt;<a href="tqpaintevent.html#region">region</a>().rects();
<a name="x913"></a> for ( uint i = 0; i &lt; rects.<a href="tqmemarray.html#count">count</a>(); i++ ) {
- <a href="ntqrect.html">TQRect</a> r = rects[(int)i];
- <a href="tqimage.html#bitBlt">bitBlt</a>( this, r.<a href="ntqrect.html#x">x</a>(), r.<a href="ntqrect.html#y">y</a>(), &amp;buffer, r.<a href="ntqrect.html#x">x</a>(), r.<a href="ntqrect.html#y">y</a>(), r.<a href="ntqrect.html#width">width</a>(), r.<a href="ntqrect.html#height">height</a>() );
+ <a href="tqrect.html">TQRect</a> r = rects[(int)i];
+ <a href="tqimage.html#bitBlt">bitBlt</a>( this, r.<a href="tqrect.html#x">x</a>(), r.<a href="tqrect.html#y">y</a>(), &amp;buffer, r.<a href="tqrect.html#x">x</a>(), r.<a href="tqrect.html#y">y</a>(), r.<a href="tqrect.html#width">width</a>(), r.<a href="tqrect.html#height">height</a>() );
}
}