diff options
Diffstat (limited to 'doc/html/desktop-example.html')
-rw-r--r-- | doc/html/desktop-example.html | 20 |
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 <<a href="tqimage-h.html">tqimage.h</a>> #include <<a href="tqbitmap-h.html">tqbitmap.h</a>> #include <<a href="tqpainter-h.html">tqpainter.h</a>> -#include <<a href="qapplication-h.html">ntqapplication.h</a>> +#include <<a href="tqapplication-h.html">tqapplication.h</a>> #include <<a href="tqdropsite-h.html">tqdropsite.h</a>> #include <<a href="tqdragobject-h.html">tqdragobject.h</a>> #include <stdio.h> @@ -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-><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<=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-><a href="tqwidget.html#update">update</a>(); - tqApp-><a href="ntqapplication.html#exec">exec</a>(); + tqApp-><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-><a href="ntqapplication.html#palette">palette</a>().inactive().background(); +<a name="x1723"></a> <a href="tqcolor.html">TQColor</a> c1 = tqApp-><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-><a href="ntqapplication.html#desktop">desktop</a>()->width(); - int appHeight = tqApp-><a href="ntqapplication.html#desktop">desktop</a>()->height(); + int appWidth = tqApp-><a href="tqapplication.html#desktop">desktop</a>()->width(); + int appHeight = tqApp-><a href="tqapplication.html#desktop">desktop</a>()->height(); if ( r.<a href="tqrect.html#width">width</a>() > 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>() > appHeight - border*2 ) @@ -334,7 +334,7 @@ void desktopText( const char *s = "Trolltech" ) drawShadeText( &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-><a href="ntqapplication.html#desktop">desktop</a>()->setBackgroundPixmap( pm ); + tqApp-><a href="tqapplication.html#desktop">desktop</a>()->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 > 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; |