summaryrefslogtreecommitdiffstats
path: root/doc/html/canvas-example.html
diff options
context:
space:
mode:
authorMichele Calgaro <michele.calgaro@yahoo.it>2024-06-06 13:00:12 +0900
committerMichele Calgaro <michele.calgaro@yahoo.it>2024-06-06 13:00:12 +0900
commit8c029298d9d3f1f84b65ac4a3a16cd1fa28d9cde (patch)
tree3427fe04e3116ccbd16fa98e57abd5d118f82353 /doc/html/canvas-example.html
parent0881ed5059c46ce73e8241e6260b82b92f6d0e55 (diff)
downloadtqt-8c029298.tar.gz
tqt-8c029298.zip
Rename image nt* related files to equivalent tq*
Signed-off-by: Michele Calgaro <michele.calgaro@yahoo.it>
Diffstat (limited to 'doc/html/canvas-example.html')
-rw-r--r--doc/html/canvas-example.html28
1 files changed, 14 insertions, 14 deletions
diff --git a/doc/html/canvas-example.html b/doc/html/canvas-example.html
index 32d05b269..70b9d2000 100644
--- a/doc/html/canvas-example.html
+++ b/doc/html/canvas-example.html
@@ -142,7 +142,7 @@ private:
#include &lt;<a href="qpainter-h.html">ntqpainter.h</a>&gt;
#include &lt;<a href="qprinter-h.html">ntqprinter.h</a>&gt;
#include &lt;<a href="qlabel-h.html">ntqlabel.h</a>&gt;
-#include &lt;<a href="qimage-h.html">ntqimage.h</a>&gt;
+#include &lt;<a href="tqimage-h.html">tqimage.h</a>&gt;
#include &lt;<a href="qprogressdialog-h.html">ntqprogressdialog.h</a>&gt;
#include "canvas.h"
@@ -174,21 +174,21 @@ static const int imageRTTI = 984376;
class ImageItem: public <a href="tqcanvasrectangle.html">TQCanvasRectangle</a>
{
public:
- ImageItem( <a href="ntqimage.html">TQImage</a> img, TQCanvas *canvas );
+ ImageItem( <a href="tqimage.html">TQImage</a> img, TQCanvas *canvas );
int rtti () const { return imageRTTI; }
bool hit( const <a href="ntqpoint.html">TQPoint</a>&amp;) const;
protected:
void drawShape( <a href="ntqpainter.html">TQPainter</a> &amp; );
private:
- <a href="ntqimage.html">TQImage</a> image;
+ <a href="tqimage.html">TQImage</a> image;
<a href="ntqpixmap.html">TQPixmap</a> pixmap;
};
-<a name="f623"></a>ImageItem::ImageItem( <a href="ntqimage.html">TQImage</a> img, TQCanvas *canvas )
+<a name="f623"></a>ImageItem::ImageItem( <a href="tqimage.html">TQImage</a> img, TQCanvas *canvas )
: <a href="tqcanvasrectangle.html">TQCanvasRectangle</a>( canvas ), image(img)
{
-<a name="x2935"></a><a name="x2932"></a> <a href="tqcanvasrectangle.html#setSize">setSize</a>( image.<a href="ntqimage.html#width">width</a>(), image.<a href="ntqimage.html#height">height</a>() );
+<a name="x2935"></a><a name="x2932"></a> <a href="tqcanvasrectangle.html#setSize">setSize</a>( image.<a href="tqimage.html#width">width</a>(), image.<a href="tqimage.html#height">height</a>() );
#if !defined(TQ_WS_QWS)
<a name="x2943"></a> pixmap.<a href="ntqpixmap.html#convertFromImage">convertFromImage</a>(image, OrderedAlphaDither);
@@ -211,9 +211,9 @@ bool <a name="f624"></a>ImageItem::hit( const <a href="ntqpoint.html">TQPoint</a
{
<a name="x2944"></a> int ix = p.<a href="ntqpoint.html#x">x</a>()-int(<a href="tqcanvasitem.html#x">x</a>());
<a name="x2945"></a> int iy = p.<a href="ntqpoint.html#y">y</a>()-int(<a href="tqcanvasitem.html#y">y</a>());
-<a name="x2934"></a> if ( !image.<a href="ntqimage.html#valid">valid</a>( ix , iy ) )
+<a name="x2934"></a> if ( !image.<a href="tqimage.html#valid">valid</a>( ix , iy ) )
return FALSE;
-<a name="x2933"></a> TQRgb pixel = image.<a href="ntqimage.html#pixel">pixel</a>( ix, iy );
+<a name="x2933"></a> TQRgb pixel = image.<a href="tqimage.html#pixel">pixel</a>( ix, iy );
return tqAlpha( pixel ) != 0;
}
@@ -680,7 +680,7 @@ void <a name="f645"></a>Main::addButterfly()
if ( butterfly_fn.isEmpty() )
return;
if ( !butterflyimg ) {
- butterflyimg = new <a href="ntqimage.html">TQImage</a>[4];
+ butterflyimg = new <a href="tqimage.html">TQImage</a>[4];
butterflyimg[0].load( butterfly_fn );
butterflyimg[1] = butterflyimg[0].smoothScale( int(butterflyimg[0].width()*0.75),
int(butterflyimg[0].height()*0.75) );
@@ -690,8 +690,8 @@ void <a name="f645"></a>Main::addButterfly()
int(butterflyimg[0].height()*0.25) );
}
<a href="tqcanvaspolygonalitem.html">TQCanvasPolygonalItem</a>* i = new ImageItem(butterflyimg[rand()%4],&amp;canvas);
-<a name="x2915"></a> i-&gt;<a href="tqcanvasitem.html#move">move</a>(rand()%(canvas.<a href="tqcanvas.html#width">width</a>()-butterflyimg-&gt;<a href="ntqimage.html#width">width</a>()),
- rand()%(canvas.<a href="tqcanvas.html#height">height</a>()-butterflyimg-&gt;<a href="ntqimage.html#height">height</a>()));
+<a name="x2915"></a> i-&gt;<a href="tqcanvasitem.html#move">move</a>(rand()%(canvas.<a href="tqcanvas.html#width">width</a>()-butterflyimg-&gt;<a href="tqimage.html#width">width</a>()),
+ rand()%(canvas.<a href="tqcanvas.html#height">height</a>()-butterflyimg-&gt;<a href="tqimage.html#height">height</a>()));
i-&gt;<a href="tqcanvasitem.html#setZ">setZ</a>(rand()%256+250);
i-&gt;<a href="tqcanvasitem.html#show">show</a>();
}
@@ -701,7 +701,7 @@ void <a name="f646"></a>Main::addLogo()
if ( logo_fn.isEmpty() )
return;
if ( !logoimg ) {
- logoimg = new <a href="ntqimage.html">TQImage</a>[4];
+ logoimg = new <a href="tqimage.html">TQImage</a>[4];
logoimg[0].load( logo_fn );
logoimg[1] = logoimg[0].smoothScale( int(logoimg[0].width()*0.75),
int(logoimg[0].height()*0.75) );
@@ -711,8 +711,8 @@ void <a name="f646"></a>Main::addLogo()
int(logoimg[0].height()*0.25) );
}
<a href="tqcanvaspolygonalitem.html">TQCanvasPolygonalItem</a>* i = new ImageItem(logoimg[rand()%4],&amp;canvas);
- i-&gt;<a href="tqcanvasitem.html#move">move</a>(rand()%(canvas.<a href="tqcanvas.html#width">width</a>()-logoimg-&gt;<a href="ntqimage.html#width">width</a>()),
- rand()%(canvas.<a href="tqcanvas.html#height">height</a>()-logoimg-&gt;<a href="ntqimage.html#width">width</a>()));
+ i-&gt;<a href="tqcanvasitem.html#move">move</a>(rand()%(canvas.<a href="tqcanvas.html#width">width</a>()-logoimg-&gt;<a href="tqimage.html#width">width</a>()),
+ rand()%(canvas.<a href="tqcanvas.html#height">height</a>()-logoimg-&gt;<a href="tqimage.html#width">width</a>()));
i-&gt;<a href="tqcanvasitem.html#setZ">setZ</a>(rand()%256+256);
i-&gt;<a href="tqcanvasitem.html#show">show</a>();
}
@@ -888,7 +888,7 @@ void <a name="f654"></a>Main::addRectangle()
#include &lt;<a href="qmessagebox-h.html">ntqmessagebox.h</a>&gt;
#include &lt;<a href="qmenubar-h.html">ntqmenubar.h</a>&gt;
#include &lt;<a href="qapplication-h.html">ntqapplication.h</a>&gt;
-#include &lt;<a href="qimage-h.html">ntqimage.h</a>&gt;
+#include &lt;<a href="tqimage-h.html">tqimage.h</a>&gt;
#include "canvas.h"