summaryrefslogtreecommitdiffstats
path: root/doc/html/forever-example.html
diff options
context:
space:
mode:
Diffstat (limited to 'doc/html/forever-example.html')
-rw-r--r--doc/html/forever-example.html26
1 files changed, 13 insertions, 13 deletions
diff --git a/doc/html/forever-example.html b/doc/html/forever-example.html
index 2df6d7565..45dda206c 100644
--- a/doc/html/forever-example.html
+++ b/doc/html/forever-example.html
@@ -55,17 +55,17 @@ are drawn per second.
#ifndef FOREVER_H
#define FOREVER_H
-#include &lt;<a href="qwidget-h.html">ntqwidget.h</a>&gt;
+#include &lt;<a href="tqwidget-h.html">tqwidget.h</a>&gt;
const int numColors = 120;
-class Forever : public <a href="ntqwidget.html">TQWidget</a>
+class Forever : public <a href="tqwidget.html">TQWidget</a>
{
<a href="metaobjects.html#TQ_OBJECT">TQ_OBJECT</a>
public:
- Forever( <a href="ntqwidget.html">TQWidget</a> *parent=0, const char *name=0 );
+ Forever( <a href="tqwidget.html">TQWidget</a> *parent=0, const char *name=0 );
protected:
void paintEvent( <a href="qpaintevent.html">TQPaintEvent</a> * );
void timerEvent( <a href="qtimerevent.html">TQTimerEvent</a> * );
@@ -108,8 +108,8 @@ private:
// Constructs a Forever widget.
//
-<a name="f365"></a>Forever::Forever( <a href="ntqwidget.html">TQWidget</a> *parent, const char *name )
- : <a href="ntqwidget.html">TQWidget</a>( parent, name )
+<a name="f365"></a>Forever::Forever( <a href="tqwidget.html">TQWidget</a> *parent, const char *name )
+ : <a href="tqwidget.html">TQWidget</a>( parent, name )
{
for (int a=0; a&lt;numColors; a++) {
colors[a] = TQColor( rand()&amp;255,
@@ -130,7 +130,7 @@ void <a name="f366"></a>Forever::updateCaption()
<a href="ntqstring.html">TQString</a> s;
<a name="x1052"></a> s.<a href="ntqstring.html#sprintf">sprintf</a>( "TQt Example - Forever - %d rectangles/second", rectangles );
rectangles = 0;
- <a href="ntqwidget.html#setCaption">setCaption</a>( s );
+ <a href="tqwidget.html#setCaption">setCaption</a>( s );
}
@@ -138,11 +138,11 @@ void <a name="f366"></a>Forever::updateCaption()
// Handles paint events for the Forever widget.
//
-<a name="x1055"></a>void Forever::<a href="ntqwidget.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="qpaintevent.html">TQPaintEvent</a> * )
{
<a href="ntqpainter.html">TQPainter</a> paint( this ); // painter object
- int w = <a href="ntqwidget.html#width">width</a>();
- int h = <a href="ntqwidget.html#height">height</a>();
+ int w = <a href="tqwidget.html#width">width</a>();
+ int h = <a href="tqwidget.html#height">height</a>();
if(w &lt;= 0 || h &lt;= 0)
return;
paint.<a href="ntqpainter.html#setPen">setPen</a>( NoPen ); // do not draw outline
@@ -162,7 +162,7 @@ void <a name="f366"></a>Forever::updateCaption()
<a name="x1048"></a>void Forever::<a href="tqobject.html#timerEvent">timerEvent</a>( <a href="qtimerevent.html">TQTimerEvent</a> * )
{
for ( int i=0; i&lt;100; i++ ) {
- <a href="ntqwidget.html#repaint">repaint</a>( FALSE ); // repaint, don't erase
+ <a href="tqwidget.html#repaint">repaint</a>( FALSE ); // repaint, don't erase
rectangles++;
}
}
@@ -176,10 +176,10 @@ int main( int argc, char **argv )
{
<a href="ntqapplication.html">TQApplication</a> a( argc, argv ); // create application object
Forever always; // create widget
- always.<a href="ntqwidget.html#resize">resize</a>( 400, 250 ); // start up with size 400x250
+ always.<a href="tqwidget.html#resize">resize</a>( 400, 250 ); // start up with size 400x250
a.<a href="ntqapplication.html#setMainWidget">setMainWidget</a>( &amp;always ); // set as main widget
- always.<a href="ntqwidget.html#setCaption">setCaption</a>("TQt Example - Forever");
- always.<a href="ntqwidget.html#show">show</a>(); // show widget
+ always.<a href="tqwidget.html#setCaption">setCaption</a>("TQt Example - Forever");
+ always.<a href="tqwidget.html#show">show</a>(); // show widget
return a.<a href="ntqapplication.html#exec">exec</a>(); // run event loop
}
</pre>