summaryrefslogtreecommitdiffstats
path: root/doc/html/picture-example.html
diff options
context:
space:
mode:
Diffstat (limited to 'doc/html/picture-example.html')
-rw-r--r--doc/html/picture-example.html22
1 files changed, 11 insertions, 11 deletions
diff --git a/doc/html/picture-example.html b/doc/html/picture-example.html
index 1fdb0960b..a4d2b0d12 100644
--- a/doc/html/picture-example.html
+++ b/doc/html/picture-example.html
@@ -49,8 +49,8 @@ a set of drawing commands.
#include &lt;<a href="qapplication-h.html">ntqapplication.h</a>&gt;
#include &lt;<a href="tqpainter-h.html">tqpainter.h</a>&gt;
-#include &lt;<a href="qpicture-h.html">ntqpicture.h</a>&gt;
-#include &lt;<a href="qpixmap-h.html">ntqpixmap.h</a>&gt;
+#include &lt;<a href="tqpicture-h.html">tqpicture.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="qmessagebox-h.html">ntqmessagebox.h</a>&gt;
#include &lt;<a href="tqfile-h.html">tqfile.h</a>&gt;
@@ -59,7 +59,7 @@ a set of drawing commands.
void paintCar( <a href="tqpainter.html">TQPainter</a> *p ) // paint a car
{
- <a href="ntqpointarray.html">TQPointArray</a> a;
+ <a href="tqpointarray.html">TQPointArray</a> a;
<a href="tqbrush.html">TQBrush</a> brush( TQt::yellow, TQt::SolidPattern );
<a name="x120"></a> p-&gt;<a href="tqpainter.html#setBrush">setBrush</a>( brush ); // use solid, yellow brush
@@ -75,8 +75,8 @@ void paintCar( <a href="tqpainter.html">TQPainter</a> *p ) //
<a name="x116"></a> p-&gt;<a href="tqpainter.html#drawRect">drawRect</a>( 80, 80, 250, 70 ); // car window
<a name="x117"></a> p-&gt;<a href="tqpainter.html#drawText">drawText</a>( 180, 80, 150, 70, TQt::AlignCenter, "-- TQt --\nTrolltech AS" );
- <a href="ntqpixmap.html">TQPixmap</a> pixmap;
-<a name="x124"></a> if ( pixmap.<a href="ntqpixmap.html#load">load</a>("flag.bmp") ) // load and draw image
+ <a href="tqpixmap.html">TQPixmap</a> pixmap;
+<a name="x124"></a> if ( pixmap.<a href="tqpixmap.html#load">load</a>("flag.bmp") ) // load and draw image
<a name="x114"></a> p-&gt;<a href="tqpainter.html#drawPixmap">drawPixmap</a>( 100, 85, pixmap );
<a name="x119"></a> p-&gt;<a href="tqpainter.html#setBackgroundMode">setBackgroundMode</a>( TQt::OpaqueMode ); // set opaque mode
@@ -96,15 +96,15 @@ protected:
void paintEvent( <a href="tqpaintevent.html">TQPaintEvent</a> * );
void keyPressEvent( <a href="qkeyevent.html">TQKeyEvent</a> * );
private:
- <a href="ntqpicture.html">TQPicture</a> *pict;
+ <a href="tqpicture.html">TQPicture</a> *pict;
<a href="tqstring.html">TQString</a> name;
};
<a name="f207"></a>PictureDisplay::PictureDisplay( const char *fileName )
{
- pict = new <a href="ntqpicture.html">TQPicture</a>;
+ pict = new <a href="tqpicture.html">TQPicture</a>;
name = fileName;
-<a name="x122"></a> if ( !pict-&gt;<a href="ntqpicture.html#load">load</a>(fileName) ) { // cannot load picture
+<a name="x122"></a> if ( !pict-&gt;<a href="tqpicture.html#load">load</a>(fileName) ) { // cannot load picture
delete pict;
pict = 0;
name.<a href="tqstring.html#sprintf">sprintf</a>( "Not able to load picture: %s", fileName );
@@ -129,7 +129,7 @@ void PictureDisplay::<a href="tqwidget.html#paintEvent">paintEvent</a>( <a href=
{
<a name="x109"></a> switch ( tolower(k-&gt;<a href="qkeyevent.html#ascii">ascii</a>()) ) {
case 'r': // reload
- pict-&gt;<a href="ntqpicture.html#load">load</a>( name );
+ pict-&gt;<a href="tqpicture.html#load">load</a>( name );
<a href="tqwidget.html#update">update</a>();
break;
case 'q': // quit
@@ -149,14 +149,14 @@ int main( int argc, char **argv )
fileName = argv[1];
if ( !TQFile::exists(fileName) ) {
- <a href="ntqpicture.html">TQPicture</a> pict; // our picture
+ <a href="tqpicture.html">TQPicture</a> pict; // our picture
<a href="tqpainter.html">TQPainter</a> paint; // our painter
<a name="x111"></a> paint.<a href="tqpainter.html#begin">begin</a>( &amp;pict ); // begin painting onto picture
paintCar( &amp;paint ); // paint!
<a name="x118"></a> paint.<a href="tqpainter.html#end">end</a>(); // painting done
-<a name="x123"></a> pict.<a href="ntqpicture.html#save">save</a>( fileName ); // save picture
+<a name="x123"></a> pict.<a href="tqpicture.html#save">save</a>( fileName ); // save picture
<a name="x110"></a> TQMessageBox::<a href="ntqmessagebox.html#information">information</a>(0, "TQt Example - Picture", "Saved. Run me again!");
return 0;
} else {