diff options
Diffstat (limited to 'doc/html/picture-example.html')
-rw-r--r-- | doc/html/picture-example.html | 16 |
1 files changed, 8 insertions, 8 deletions
diff --git a/doc/html/picture-example.html b/doc/html/picture-example.html index 1117c1fe8..eb3687fd2 100644 --- a/doc/html/picture-example.html +++ b/doc/html/picture-example.html @@ -51,7 +51,7 @@ a set of drawing commands. #include <<a href="qpainter-h.html">ntqpainter.h</a>> #include <<a href="qpicture-h.html">ntqpicture.h</a>> #include <<a href="qpixmap-h.html">ntqpixmap.h</a>> -#include <<a href="qwidget-h.html">ntqwidget.h</a>> +#include <<a href="tqwidget-h.html">tqwidget.h</a>> #include <<a href="qmessagebox-h.html">ntqmessagebox.h</a>> #include <<a href="qfile-h.html">ntqfile.h</a>> #include <ctype.h> @@ -87,7 +87,7 @@ void paintCar( <a href="ntqpainter.html">TQPainter</a> *p ) / } -class PictureDisplay : public <a href="ntqwidget.html">TQWidget</a> // picture display widget +class PictureDisplay : public <a href="tqwidget.html">TQWidget</a> // picture display widget { public: PictureDisplay( const char *fileName ); @@ -116,21 +116,21 @@ PictureDisplay::~PictureDisplay() delete pict; } -void PictureDisplay::<a href="ntqwidget.html#paintEvent">paintEvent</a>( <a href="qpaintevent.html">TQPaintEvent</a> * ) +void PictureDisplay::<a href="tqwidget.html#paintEvent">paintEvent</a>( <a href="qpaintevent.html">TQPaintEvent</a> * ) { <a href="ntqpainter.html">TQPainter</a> paint( this ); // paint widget if ( pict ) <a name="x113"></a> paint.<a href="ntqpainter.html#drawPicture">drawPicture</a>( *pict ); // draw picture else - paint.<a href="ntqpainter.html#drawText">drawText</a>( <a href="ntqwidget.html#rect">rect</a>(), AlignCenter, name ); + paint.<a href="ntqpainter.html#drawText">drawText</a>( <a href="tqwidget.html#rect">rect</a>(), AlignCenter, name ); } -<a name="x127"></a>void PictureDisplay::<a href="ntqwidget.html#keyPressEvent">keyPressEvent</a>( <a href="qkeyevent.html">TQKeyEvent</a> *k ) +<a name="x127"></a>void PictureDisplay::<a href="tqwidget.html#keyPressEvent">keyPressEvent</a>( <a href="qkeyevent.html">TQKeyEvent</a> *k ) { <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 ); - <a href="ntqwidget.html#update">update</a>(); + <a href="tqwidget.html#update">update</a>(); break; case 'q': // quit <a name="x106"></a> TQApplication::<a href="ntqapplication.html#exit">exit</a>(); @@ -162,8 +162,8 @@ int main( int argc, char **argv ) } else { PictureDisplay test( fileName ); // create picture display a.<a href="ntqapplication.html#setMainWidget">setMainWidget</a>( &test); // set main widget - test.<a href="ntqwidget.html#setCaption">setCaption</a>("TQt Example - Picture"); - test.<a href="ntqwidget.html#show">show</a>(); // show it + test.<a href="tqwidget.html#setCaption">setCaption</a>("TQt Example - Picture"); + test.<a href="tqwidget.html#show">show</a>(); // show it return a.<a href="ntqapplication.html#exec">exec</a>(); // start event loop } |