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.html20
1 files changed, 10 insertions, 10 deletions
diff --git a/doc/html/desktop-example.html b/doc/html/desktop-example.html
index cbdace5f6..491aaee96 100644
--- a/doc/html/desktop-example.html
+++ b/doc/html/desktop-example.html
@@ -51,7 +51,7 @@ any other.
#include &lt;<a href="tqimage-h.html">tqimage.h</a>&gt;
#include &lt;<a href="tqbitmap-h.html">tqbitmap.h</a>&gt;
#include &lt;<a href="tqpainter-h.html">tqpainter.h</a>&gt;
-#include &lt;<a href="qapplication-h.html">ntqapplication.h</a>&gt;
+#include &lt;<a href="tqapplication-h.html">tqapplication.h</a>&gt;
#include &lt;<a href="tqdropsite-h.html">tqdropsite.h</a>&gt;
#include &lt;<a href="tqdragobject-h.html">tqdragobject.h</a>&gt;
#include &lt;stdio.h&gt;
@@ -84,7 +84,7 @@ static int velocity( int i ) // change velocity
void poly()
{
-<a name="x1721"></a> <a href="tqwidget.html">TQWidget</a> *d = TQApplication::<a href="ntqapplication.html#desktop">desktop</a>();
+<a name="x1721"></a> <a href="tqwidget.html">TQWidget</a> *d = TQApplication::<a href="tqapplication.html#desktop">desktop</a>();
<a name="x1761"></a> d-&gt;<a href="tqwidget.html#setBackgroundColor">setBackgroundColor</a>( TQt::white ); // white desktop
const int maxpoints = 5;
@@ -173,7 +173,7 @@ void rotate()
pm = image; // convert image to pixmap
<a name="x1745"></a> pm.<a href="tqpixmap.html#setOptimization">setOptimization</a>( TQPixmap::BestOptim ); // rotation will be faster
- <a href="tqwidget.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="tqapplication.html#desktop">desktop</a>(); // w = desktop widget
for ( i=0; i&lt;=360; i += 2 ) {
<a href="tqwmatrix.html">TQWMatrix</a> m;
@@ -302,7 +302,7 @@ void desktopWidget( const char *s = "Trolltech" )
{
DesktopWidget *t = new DesktopWidget(s);
t-&gt;<a href="tqwidget.html#update">update</a>();
- tqApp-&gt;<a href="ntqapplication.html#exec">exec</a>();
+ tqApp-&gt;<a href="tqapplication.html#exec">exec</a>();
delete t;
}
@@ -310,7 +310,7 @@ void desktopText( const char *s = "Trolltech" )
{
const int border = 20;
-<a name="x1723"></a> <a href="tqcolor.html">TQColor</a> c1 = tqApp-&gt;<a href="ntqapplication.html#palette">palette</a>().inactive().background();
+<a name="x1723"></a> <a href="tqcolor.html">TQColor</a> c1 = tqApp-&gt;<a href="tqapplication.html#palette">palette</a>().inactive().background();
<a href="tqcolor.html">TQColor</a> c2 = c1.<a href="tqcolor.html#light">light</a>(104);
<a href="tqcolor.html">TQColor</a> c3 = c1.<a href="tqcolor.html#dark">dark</a>(106);
@@ -321,8 +321,8 @@ void desktopText( const char *s = "Trolltech" )
<a name="x1738"></a> <a href="tqrect.html">TQRect</a> r = p.<a href="tqpainter.html#fontMetrics">fontMetrics</a>().boundingRect( s );
p.<a href="tqpainter.html#end">end</a>();
- 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();
+ int appWidth = tqApp-&gt;<a href="tqapplication.html#desktop">desktop</a>()-&gt;width();
+ int appHeight = tqApp-&gt;<a href="tqapplication.html#desktop">desktop</a>()-&gt;height();
if ( r.<a href="tqrect.html#width">width</a>() &gt; appWidth - border*2 )
<a name="x1753"></a> r.<a href="tqrect.html#setWidth">setWidth</a>( appWidth - border*2 );
if ( r.<a href="tqrect.html#height">height</a>() &gt; appHeight - border*2 )
@@ -334,7 +334,7 @@ void desktopText( const char *s = "Trolltech" )
drawShadeText( &amp;p, -r.<a href="tqrect.html#x">x</a>() + border, -r.<a href="tqrect.html#y">y</a>() + border, s, c2, c3 );
p.<a href="tqpainter.html#end">end</a>();
- tqApp-&gt;<a href="ntqapplication.html#desktop">desktop</a>()-&gt;setBackgroundPixmap( pm );
+ tqApp-&gt;<a href="tqapplication.html#desktop">desktop</a>()-&gt;setBackgroundPixmap( pm );
}
//
@@ -343,12 +343,12 @@ void desktopText( const char *s = "Trolltech" )
int main( int argc, char **argv )
{
- <a href="ntqapplication.html">TQApplication</a> app( argc, argv );
+ <a href="tqapplication.html">TQApplication</a> app( argc, argv );
if ( argc &gt; 1 ) {
<a href="tqfont.html">TQFont</a> f( "charter", 96, TQFont::Black );
<a name="x1728"></a> f.<a href="tqfont.html#setStyleHint">setStyleHint</a>( TQFont::Times );
-<a name="x1724"></a> app.<a href="ntqapplication.html#setFont">setFont</a>( f );
+<a name="x1724"></a> app.<a href="tqapplication.html#setFont">setFont</a>( f );
}
bool validOptions = FALSE;