summaryrefslogtreecommitdiffstats
path: root/doc/html/desktop-example.html
diff options
context:
space:
mode:
Diffstat (limited to 'doc/html/desktop-example.html')
-rw-r--r--doc/html/desktop-example.html12
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&lt;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&lt;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&lt;w; x++ )
@@ -303,7 +303,7 @@ void desktopWidget( const char *s = "Trolltech" )
{
DesktopWidget *t = new DesktopWidget(s);
t-&gt;<a href="ntqwidget.html#update">update</a>();
- qApp-&gt;<a href="ntqapplication.html#exec">exec</a>();
+ tqApp-&gt;<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-&gt;<a href="ntqapplication.html#palette">palette</a>().inactive().background();
+<a name="x1723"></a> <a href="ntqcolor.html">TQColor</a> c1 = tqApp-&gt;<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-&gt;<a href="ntqapplication.html#desktop">desktop</a>()-&gt;width();
- int appHeight = qApp-&gt;<a href="ntqapplication.html#desktop">desktop</a>()-&gt;height();
+ int appWidth = tqApp-&gt;<a href="ntqapplication.html#desktop">desktop</a>()-&gt;width();
+ int appHeight = tqApp-&gt;<a href="ntqapplication.html#desktop">desktop</a>()-&gt;height();
if ( r.<a href="ntqrect.html#width">width</a>() &gt; 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>() &gt; appHeight - border*2 )
@@ -335,7 +335,7 @@ void desktopText( const char *s = "Trolltech" )
drawShadeText( &amp;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-&gt;<a href="ntqapplication.html#desktop">desktop</a>()-&gt;setBackgroundPixmap( pm );
+ tqApp-&gt;<a href="ntqapplication.html#desktop">desktop</a>()-&gt;setBackgroundPixmap( pm );
}
//