diff options
author | Michele Calgaro <[email protected]> | 2024-06-02 23:07:22 +0900 |
---|---|---|
committer | Michele Calgaro <[email protected]> | 2024-06-02 23:22:42 +0900 |
commit | 8ac0e970e4464d9f8f73c0fb34a178ff135be8c3 (patch) | |
tree | b95884617b9a37accc843676d5d42be4116a3f54 /doc/html/desktop-example.html | |
parent | 68b81013e8668f50fc18b7e26a520ec93a7a1251 (diff) | |
download | tqt3-8ac0e970e4464d9f8f73c0fb34a178ff135be8c3.tar.gz tqt3-8ac0e970e4464d9f8f73c0fb34a178ff135be8c3.zip |
Rename ntqwidget* related files to equivalent tqwidget*
Signed-off-by: Michele Calgaro <[email protected]>
Diffstat (limited to 'doc/html/desktop-example.html')
-rw-r--r-- | doc/html/desktop-example.html | 36 |
1 files changed, 18 insertions, 18 deletions
diff --git a/doc/html/desktop-example.html b/doc/html/desktop-example.html index f2595d5be..4f1d37b0d 100644 --- a/doc/html/desktop-example.html +++ b/doc/html/desktop-example.html @@ -85,8 +85,8 @@ static int velocity( int i ) // change velocity void poly() { -<a name="x1721"></a> <a href="ntqwidget.html">TQWidget</a> *d = TQApplication::<a href="ntqapplication.html#desktop">desktop</a>(); -<a name="x1761"></a> d-><a href="ntqwidget.html#setBackgroundColor">setBackgroundColor</a>( TQt::white ); // white desktop +<a name="x1721"></a> <a href="tqwidget.html">TQWidget</a> *d = TQApplication::<a href="ntqapplication.html#desktop">desktop</a>(); +<a name="x1761"></a> d-><a href="tqwidget.html#setBackgroundColor">setBackgroundColor</a>( TQt::white ); // white desktop const int maxpoints = 5; const int maxcurves = 8; @@ -96,7 +96,7 @@ void poly() int tail = -maxcurves + 2; <a href="ntqpointarray.html">TQPointArray</a> *a = new <a href="ntqpointarray.html">TQPointArray</a>[ maxcurves ]; TQPointArray *p; -<a name="x1760"></a> <a href="ntqrect.html">TQRect</a> r = d-><a href="ntqwidget.html#rect">rect</a>(); // desktop rectangle +<a name="x1760"></a> <a href="ntqrect.html">TQRect</a> r = d-><a href="tqwidget.html#rect">rect</a>(); // desktop rectangle int i; for ( i=0; i<maxcurves; i++ ) @@ -174,14 +174,14 @@ void rotate() pm = image; // convert image to pixmap <a name="x1745"></a> pm.<a href="ntqpixmap.html#setOptimization">setOptimization</a>( TQPixmap::BestOptim ); // rotation will be faster - <a href="ntqwidget.html">TQWidget</a> *d = TQApplication::<a href="ntqapplication.html#desktop">desktop</a>(); // w = desktop widget + <a href="tqwidget.html">TQWidget</a> *d = TQApplication::<a href="ntqapplication.html#desktop">desktop</a>(); // w = desktop widget for ( i=0; i<=360; i += 2 ) { <a href="ntqwmatrix.html">TQWMatrix</a> m; <a name="x1764"></a> m.<a href="ntqwmatrix.html#rotate">rotate</a>( i ); // rotate coordinate system <a name="x1747"></a> <a href="ntqpixmap.html">TQPixmap</a> rpm = pm.<a href="ntqpixmap.html#xForm">xForm</a>( m ); // rpm = rotated pixmap -<a name="x1762"></a> d-><a href="ntqwidget.html#setBackgroundPixmap">setBackgroundPixmap</a>( rpm ); // set desktop pixmap -<a name="x1763"></a> d-><a href="ntqwidget.html#update">update</a>(); // repaint desktop +<a name="x1762"></a> d-><a href="tqwidget.html#setBackgroundPixmap">setBackgroundPixmap</a>( rpm ); // set desktop pixmap +<a name="x1763"></a> d-><a href="tqwidget.html#update">update</a>(); // repaint desktop } } @@ -227,7 +227,7 @@ void drawShadeText( <a href="ntqpainter.html">TQPainter</a> *p, int x, int y, co // NOTE: desktop drag/drop is experimental -class DesktopWidget : public <a href="ntqwidget.html">TQWidget</a>, private TQDropSite +class DesktopWidget : public <a href="tqwidget.html">TQWidget</a>, private TQDropSite { public: DesktopWidget( const char *s, TQWidget *parent=0, const char *name=0 ); @@ -253,8 +253,8 @@ public: { <a href="ntqpixmap.html">TQPixmap</a> pmp; <a name="x1732"></a> if ( TQImageDrag::<a href="qimagedrag.html#decode">decode</a>( e, pmp ) ) { - <a href="ntqwidget.html#setBackgroundPixmap">setBackgroundPixmap</a>( pmp ); - <a href="ntqwidget.html#update">update</a>(); + <a href="tqwidget.html#setBackgroundPixmap">setBackgroundPixmap</a>( pmp ); + <a href="tqwidget.html#update">update</a>(); } } @@ -264,7 +264,7 @@ private: }; <a name="f483"></a>DesktopWidget::DesktopWidget( const char *s, TQWidget *parent, const char *name ) - : <a href="ntqwidget.html">TQWidget</a>( parent, name, WType_Desktop | WPaintDesktop), + : <a href="tqwidget.html">TQWidget</a>( parent, name, WType_Desktop | WPaintDesktop), TQDropSite(this) { text = s; @@ -276,21 +276,21 @@ DesktopWidget::~DesktopWidget() delete pm; } -void DesktopWidget::<a href="ntqwidget.html#paintEvent">paintEvent</a>( <a href="qpaintevent.html">TQPaintEvent</a> * ) +void DesktopWidget::<a href="tqwidget.html#paintEvent">paintEvent</a>( <a href="qpaintevent.html">TQPaintEvent</a> * ) { - <a href="ntqcolor.html">TQColor</a> c1 = <a href="ntqwidget.html#backgroundColor">backgroundColor</a>(); + <a href="ntqcolor.html">TQColor</a> c1 = <a href="tqwidget.html#backgroundColor">backgroundColor</a>(); <a name="x1726"></a> <a href="ntqcolor.html">TQColor</a> c2 = c1.<a href="ntqcolor.html#light">light</a>(104); <a name="x1725"></a> <a href="ntqcolor.html">TQColor</a> c3 = c1.<a href="ntqcolor.html#dark">dark</a>(106); if ( !pm ) { pm = new <a href="ntqpixmap.html">TQPixmap</a>( 64, 64 ); generateStone( pm, c1, c2, c3 ); - <a href="ntqwidget.html#setBackgroundPixmap">setBackgroundPixmap</a>( *pm ); - <a href="ntqwidget.html#update">update</a>(); + <a href="tqwidget.html#setBackgroundPixmap">setBackgroundPixmap</a>( *pm ); + <a href="tqwidget.html#update">update</a>(); } - <a href="ntqrect.html">TQRect</a> br = <a href="ntqwidget.html#fontMetrics">fontMetrics</a>().boundingRect( text ); + <a href="ntqrect.html">TQRect</a> br = <a href="tqwidget.html#fontMetrics">fontMetrics</a>().boundingRect( text ); <a href="ntqpixmap.html">TQPixmap</a> offscreen( br.<a href="ntqrect.html#width">width</a>(), br.<a href="ntqrect.html#height">height</a>() ); - int x = <a href="ntqwidget.html#width">width</a>()/2 - br.<a href="ntqrect.html#width">width</a>()/2; - int y = <a href="ntqwidget.html#height">height</a>()/2 - br.<a href="ntqrect.html#height">height</a>()/2; + int x = <a href="tqwidget.html#width">width</a>()/2 - br.<a href="ntqrect.html#width">width</a>()/2; + int y = <a href="tqwidget.html#height">height</a>()/2 - br.<a href="ntqrect.html#height">height</a>()/2; <a name="x1742"></a> offscreen.<a href="ntqpixmap.html#fill">fill</a>( this, x, y ); <a href="ntqpainter.html">TQPainter</a> p; p.<a href="ntqpainter.html#begin">begin</a>( &offscreen ); @@ -302,7 +302,7 @@ void DesktopWidget::<a href="ntqwidget.html#paintEvent">paintEvent</a>( <a href= void desktopWidget( const char *s = "Trolltech" ) { DesktopWidget *t = new DesktopWidget(s); - t-><a href="ntqwidget.html#update">update</a>(); + t-><a href="tqwidget.html#update">update</a>(); tqApp-><a href="ntqapplication.html#exec">exec</a>(); delete t; } |