diff options
Diffstat (limited to 'doc/html/forever-example.html')
-rw-r--r-- | doc/html/forever-example.html | 14 |
1 files changed, 7 insertions, 7 deletions
diff --git a/doc/html/forever-example.html b/doc/html/forever-example.html index 2ef77fd5b..6c08b1648 100644 --- a/doc/html/forever-example.html +++ b/doc/html/forever-example.html @@ -67,7 +67,7 @@ class Forever : public <a href="tqwidget.html">TQWidget</a> public: Forever( <a href="tqwidget.html">TQWidget</a> *parent=0, const char *name=0 ); protected: - void paintEvent( <a href="qpaintevent.html">TQPaintEvent</a> * ); + void paintEvent( <a href="tqpaintevent.html">TQPaintEvent</a> * ); void timerEvent( <a href="tqtimerevent.html">TQTimerEvent</a> * ); private slots: void updateCaption(); @@ -93,7 +93,7 @@ private: *****************************************************************************/ #include <<a href="tqtimer-h.html">tqtimer.h</a>> -#include <<a href="qpainter-h.html">ntqpainter.h</a>> +#include <<a href="tqpainter-h.html">tqpainter.h</a>> #include <<a href="qapplication-h.html">ntqapplication.h</a>> #include <stdlib.h> // defines rand() function @@ -138,21 +138,21 @@ void <a name="f366"></a>Forever::updateCaption() // Handles paint events for the Forever widget. // -<a name="x1055"></a>void Forever::<a href="tqwidget.html#paintEvent">paintEvent</a>( <a href="qpaintevent.html">TQPaintEvent</a> * ) +<a name="x1055"></a>void Forever::<a href="tqwidget.html#paintEvent">paintEvent</a>( <a href="tqpaintevent.html">TQPaintEvent</a> * ) { - <a href="ntqpainter.html">TQPainter</a> paint( this ); // painter object + <a href="tqpainter.html">TQPainter</a> paint( this ); // painter object int w = <a href="tqwidget.html#width">width</a>(); int h = <a href="tqwidget.html#height">height</a>(); if(w <= 0 || h <= 0) return; - paint.<a href="ntqpainter.html#setPen">setPen</a>( NoPen ); // do not draw outline - paint.<a href="ntqpainter.html#setBrush">setBrush</a>( colors[rand() % numColors]);// set random brush color + paint.<a href="tqpainter.html#setPen">setPen</a>( NoPen ); // do not draw outline + paint.<a href="tqpainter.html#setBrush">setBrush</a>( colors[rand() % numColors]);// set random brush color <a href="ntqpoint.html">TQPoint</a> p1( rand()%w, rand()%h ); // p1 = top left <a href="ntqpoint.html">TQPoint</a> p2( rand()%w, rand()%h ); // p2 = bottom right <a href="ntqrect.html">TQRect</a> r( p1, p2 ); - paint.<a href="ntqpainter.html#drawRect">drawRect</a>( r ); // draw filled rectangle + paint.<a href="tqpainter.html#drawRect">drawRect</a>( r ); // draw filled rectangle } // |