diff options
Diffstat (limited to 'doc/html/hello-example.html')
-rw-r--r-- | doc/html/hello-example.html | 32 |
1 files changed, 16 insertions, 16 deletions
diff --git a/doc/html/hello-example.html b/doc/html/hello-example.html index 831e4a4fd..4410cb178 100644 --- a/doc/html/hello-example.html +++ b/doc/html/hello-example.html @@ -50,10 +50,10 @@ and in different colors. #ifndef HELLO_H #define HELLO_H -#include <<a href="qwidget-h.html">ntqwidget.h</a>> +#include <<a href="tqwidget-h.html">tqwidget.h</a>> -class Hello : public <a href="ntqwidget.html">TQWidget</a> +class Hello : public <a href="tqwidget.html">TQWidget</a> { <a href="metaobjects.html#TQ_OBJECT">TQ_OBJECT</a> public: @@ -97,13 +97,13 @@ private: */ <a name="f473"></a>Hello::Hello( const char *text, TQWidget *parent, const char *name ) - : <a href="ntqwidget.html">TQWidget</a>(parent,name), t(text), b(0) + : <a href="tqwidget.html">TQWidget</a>(parent,name), t(text), b(0) { <a href="ntqtimer.html">TQTimer</a> *timer = new <a href="ntqtimer.html">TQTimer</a>(this); <a name="x1640"></a> <a href="tqobject.html#connect">connect</a>( timer, TQ_SIGNAL(<a href="ntqtimer.html#timeout">timeout</a>()), TQ_SLOT(animate()) ); <a name="x1639"></a> timer-><a href="ntqtimer.html#start">start</a>( 40 ); - <a href="ntqwidget.html#resize">resize</a>( 260, 130 ); + <a href="tqwidget.html#resize">resize</a>( 260, 130 ); } @@ -114,7 +114,7 @@ private: void <a name="f474"></a>Hello::animate() { b = (b + 1) & 15; - <a href="ntqwidget.html#repaint">repaint</a>( FALSE ); + <a href="tqwidget.html#repaint">repaint</a>( FALSE ); } @@ -125,9 +125,9 @@ void <a name="f474"></a>Hello::animate() the widget. */ -<a name="x1641"></a>void Hello::<a href="ntqwidget.html#mouseReleaseEvent">mouseReleaseEvent</a>( <a href="qmouseevent.html">TQMouseEvent</a> *e ) +<a name="x1641"></a>void Hello::<a href="tqwidget.html#mouseReleaseEvent">mouseReleaseEvent</a>( <a href="qmouseevent.html">TQMouseEvent</a> *e ) { - if ( <a href="ntqwidget.html#rect">rect</a>().contains( e-><a href="qmouseevent.html#pos">pos</a>() ) ) + if ( <a href="tqwidget.html#rect">rect</a>().contains( e-><a href="qmouseevent.html#pos">pos</a>() ) ) emit clicked(); } @@ -139,7 +139,7 @@ void <a name="f474"></a>Hello::animate() pixmap is then blt'ed to the screen. */ -void Hello::<a href="ntqwidget.html#paintEvent">paintEvent</a>( <a href="qpaintevent.html">TQPaintEvent</a> * ) +void Hello::<a href="tqwidget.html#paintEvent">paintEvent</a>( <a href="qpaintevent.html">TQPaintEvent</a> * ) { static int sin_tbl[16] = { 0, 38, 71, 92, 100, 92, 71, 38, 0, -38, -71, -92, -100, -92, -71, -38}; @@ -148,11 +148,11 @@ void Hello::<a href="ntqwidget.html#paintEvent">paintEvent</a>( <a href="qpainte return; // 1: Compute some sizes, positions etc. - <a href="ntqfontmetrics.html">TQFontMetrics</a> fm = <a href="ntqwidget.html#fontMetrics">fontMetrics</a>(); + <a href="ntqfontmetrics.html">TQFontMetrics</a> fm = <a href="tqwidget.html#fontMetrics">fontMetrics</a>(); <a name="x1631"></a> int w = fm.<a href="ntqfontmetrics.html#width">width</a>(t) + 20; <a name="x1630"></a> int h = fm.<a href="ntqfontmetrics.html#height">height</a>() * 2; - int pmx = <a href="ntqwidget.html#width">width</a>()/2 - w/2; - int pmy = <a href="ntqwidget.html#height">height</a>()/2 - h/2; + int pmx = <a href="tqwidget.html#width">width</a>()/2 - w/2; + int pmy = <a href="tqwidget.html#height">height</a>()/2 - h/2; // 2: Create the pixmap and fill it with the widget's background <a href="ntqpixmap.html">TQPixmap</a> pm( w, h ); @@ -164,7 +164,7 @@ void Hello::<a href="ntqwidget.html#paintEvent">paintEvent</a>( <a href="qpainte <a name="x1629"></a> int y = h/2 + fm.<a href="ntqfontmetrics.html#descent">descent</a>(); int i = 0; <a name="x1633"></a> p.<a href="ntqpainter.html#begin">begin</a>( &pm ); -<a name="x1636"></a> p.<a href="ntqpainter.html#setFont">setFont</a>( <a href="ntqwidget.html#font">font</a>() ); +<a name="x1636"></a> p.<a href="ntqpainter.html#setFont">setFont</a>( <a href="tqwidget.html#font">font</a>() ); while ( !t[i].isNull() ) { int i16 = (b+i) & 15; p.<a href="ntqpainter.html#setPen">setPen</a>( TQColor((15-i16)*16,255,255,TQColor::Hsv) ); @@ -213,13 +213,13 @@ int main( int argc, char **argv ) s = "Hello, World"; Hello h( s ); #ifndef TQT_NO_WIDGET_TOPEXTRA // for TQt/Embedded minimal build - h.<a href="ntqwidget.html#setCaption">setCaption</a>( "TQt says hello" ); + h.<a href="tqwidget.html#setCaption">setCaption</a>( "TQt says hello" ); #endif TQObject::<a href="tqobject.html#connect">connect</a>( &h, TQ_SIGNAL(clicked()), &a, TQ_SLOT(<a href="ntqapplication.html#quit">quit</a>()) ); -<a name="x1650"></a> h.<a href="ntqwidget.html#setFont">setFont</a>( TQFont("times",32,TQFont::Bold) ); // default font -<a name="x1648"></a> h.<a href="ntqwidget.html#setBackgroundColor">setBackgroundColor</a>( TQt::white ); // default bg color +<a name="x1650"></a> h.<a href="tqwidget.html#setFont">setFont</a>( TQFont("times",32,TQFont::Bold) ); // default font +<a name="x1648"></a> h.<a href="tqwidget.html#setBackgroundColor">setBackgroundColor</a>( TQt::white ); // default bg color a.<a href="ntqapplication.html#setMainWidget">setMainWidget</a>( &h ); - h.<a href="ntqwidget.html#show">show</a>(); + h.<a href="tqwidget.html#show">show</a>(); return a.<a href="ntqapplication.html#exec">exec</a>(); } </pre> |