diff options
Diffstat (limited to 'doc/html/picture-example.html')
-rw-r--r-- | doc/html/picture-example.html | 22 |
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 <<a href="qapplication-h.html">ntqapplication.h</a>> #include <<a href="tqpainter-h.html">tqpainter.h</a>> -#include <<a href="qpicture-h.html">ntqpicture.h</a>> -#include <<a href="qpixmap-h.html">ntqpixmap.h</a>> +#include <<a href="tqpicture-h.html">tqpicture.h</a>> +#include <<a href="tqpixmap-h.html">tqpixmap.h</a>> #include <<a href="tqwidget-h.html">tqwidget.h</a>> #include <<a href="qmessagebox-h.html">ntqmessagebox.h</a>> #include <<a href="tqfile-h.html">tqfile.h</a>> @@ -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-><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-><a href="tqpainter.html#drawRect">drawRect</a>( 80, 80, 250, 70 ); // car window <a name="x117"></a> p-><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-><a href="tqpainter.html#drawPixmap">drawPixmap</a>( 100, 85, pixmap ); <a name="x119"></a> p-><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-><a href="ntqpicture.html#load">load</a>(fileName) ) { // cannot load picture +<a name="x122"></a> if ( !pict-><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-><a href="qkeyevent.html#ascii">ascii</a>()) ) { case 'r': // reload - pict-><a href="ntqpicture.html#load">load</a>( name ); + pict-><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>( &pict ); // begin painting onto picture paintCar( &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 { |