diff options
author | Timothy Pearson <kb9vqf@pearsoncomputing.net> | 2012-02-27 02:13:42 -0600 |
---|---|---|
committer | Timothy Pearson <kb9vqf@pearsoncomputing.net> | 2012-02-27 02:13:42 -0600 |
commit | 520c05ef06ce203ad32470730f68402bc7719157 (patch) | |
tree | 8d0bb18bbbecb4c837e232848905e5819db84b81 /doc/html/desktop-example.html | |
parent | b82553bf90cb5311cfe8e673b07cf6cffc95fd3c (diff) | |
download | tqt3-520c05ef06ce203ad32470730f68402bc7719157.tar.gz tqt3-520c05ef06ce203ad32470730f68402bc7719157.zip |
Automated update from qt3
Diffstat (limited to 'doc/html/desktop-example.html')
-rw-r--r-- | doc/html/desktop-example.html | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/doc/html/desktop-example.html b/doc/html/desktop-example.html index 1d778ace4..8f2458094 100644 --- a/doc/html/desktop-example.html +++ b/doc/html/desktop-example.html @@ -163,7 +163,7 @@ void rotate() const int h = 64; <a href="ntqimage.html">TQImage</a> image( w, h, 8, 128 ); // create image for ( i=0; i<128; i++ ) // build color table -<a name="x1730"></a> image.<a href="ntqimage.html#setColor">setColor</a>( i, qRgb(i,0,0) ); +<a name="x1730"></a> image.<a href="ntqimage.html#setColor">setColor</a>( i, tqRgb(i,0,0) ); for ( int y=0; y<h; y++ ) { // set image pixels <a name="x1729"></a> uchar *p = image.<a href="ntqimage.html#scanLine">scanLine</a>(y); for ( int x=0; x<w; x++ ) @@ -303,7 +303,7 @@ void desktopWidget( const char *s = "Trolltech" ) { DesktopWidget *t = new DesktopWidget(s); t-><a href="ntqwidget.html#update">update</a>(); - qApp-><a href="ntqapplication.html#exec">exec</a>(); + tqApp-><a href="ntqapplication.html#exec">exec</a>(); delete t; } @@ -311,7 +311,7 @@ void desktopText( const char *s = "Trolltech" ) { const int border = 20; -<a name="x1723"></a> <a href="ntqcolor.html">TQColor</a> c1 = qApp-><a href="ntqapplication.html#palette">palette</a>().inactive().background(); +<a name="x1723"></a> <a href="ntqcolor.html">TQColor</a> c1 = tqApp-><a href="ntqapplication.html#palette">palette</a>().inactive().background(); <a href="ntqcolor.html">TQColor</a> c2 = c1.<a href="ntqcolor.html#light">light</a>(104); <a href="ntqcolor.html">TQColor</a> c3 = c1.<a href="ntqcolor.html#dark">dark</a>(106); @@ -322,8 +322,8 @@ void desktopText( const char *s = "Trolltech" ) <a name="x1738"></a> <a href="ntqrect.html">TQRect</a> r = p.<a href="ntqpainter.html#fontMetrics">fontMetrics</a>().boundingRect( s ); p.<a href="ntqpainter.html#end">end</a>(); - int appWidth = qApp-><a href="ntqapplication.html#desktop">desktop</a>()->width(); - int appHeight = qApp-><a href="ntqapplication.html#desktop">desktop</a>()->height(); + int appWidth = tqApp-><a href="ntqapplication.html#desktop">desktop</a>()->width(); + int appHeight = tqApp-><a href="ntqapplication.html#desktop">desktop</a>()->height(); if ( r.<a href="ntqrect.html#width">width</a>() > appWidth - border*2 ) <a name="x1753"></a> r.<a href="ntqrect.html#setWidth">setWidth</a>( appWidth - border*2 ); if ( r.<a href="ntqrect.html#height">height</a>() > appHeight - border*2 ) @@ -335,7 +335,7 @@ void desktopText( const char *s = "Trolltech" ) drawShadeText( &p, -r.<a href="ntqrect.html#x">x</a>() + border, -r.<a href="ntqrect.html#y">y</a>() + border, s, c2, c3 ); p.<a href="ntqpainter.html#end">end</a>(); - qApp-><a href="ntqapplication.html#desktop">desktop</a>()->setBackgroundPixmap( pm ); + tqApp-><a href="ntqapplication.html#desktop">desktop</a>()->setBackgroundPixmap( pm ); } // |