From 397b7afa8e3f32268c4454bf4783ac2a5a799658 Mon Sep 17 00:00:00 2001 From: Michele Calgaro Date: Tue, 15 Oct 2024 13:05:33 +0900 Subject: Rename ntqapplication, ntqconfig and ntqmodules files to equivalent tq* Signed-off-by: Michele Calgaro --- doc/html/desktop-example.html | 20 ++++++++++---------- 1 file changed, 10 insertions(+), 10 deletions(-) (limited to 'doc/html/desktop-example.html') 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 <tqimage.h> #include <tqbitmap.h> #include <tqpainter.h> -#include <ntqapplication.h> +#include <tqapplication.h> #include <tqdropsite.h> #include <tqdragobject.h> #include <stdio.h> @@ -84,7 +84,7 @@ static int velocity( int i ) // change velocity void poly() { - TQWidget *d = TQApplication::desktop(); + TQWidget *d = TQApplication::desktop(); d->setBackgroundColor( TQt::white ); // white desktop const int maxpoints = 5; @@ -173,7 +173,7 @@ void rotate() pm = image; // convert image to pixmap pm.setOptimization( TQPixmap::BestOptim ); // rotation will be faster - TQWidget *d = TQApplication::desktop(); // w = desktop widget + TQWidget *d = TQApplication::desktop(); // w = desktop widget for ( i=0; i<=360; i += 2 ) { TQWMatrix m; @@ -302,7 +302,7 @@ void desktopWidget( const char *s = "Trolltech" ) { DesktopWidget *t = new DesktopWidget(s); t->update(); - tqApp->exec(); + tqApp->exec(); delete t; } @@ -310,7 +310,7 @@ void desktopText( const char *s = "Trolltech" ) { const int border = 20; - TQColor c1 = tqApp->palette().inactive().background(); + TQColor c1 = tqApp->palette().inactive().background(); TQColor c2 = c1.light(104); TQColor c3 = c1.dark(106); @@ -321,8 +321,8 @@ void desktopText( const char *s = "Trolltech" ) TQRect r = p.fontMetrics().boundingRect( s ); p.end(); - int appWidth = tqApp->desktop()->width(); - int appHeight = tqApp->desktop()->height(); + int appWidth = tqApp->desktop()->width(); + int appHeight = tqApp->desktop()->height(); if ( r.width() > appWidth - border*2 ) r.setWidth( appWidth - border*2 ); if ( r.height() > appHeight - border*2 ) @@ -334,7 +334,7 @@ void desktopText( const char *s = "Trolltech" ) drawShadeText( &p, -r.x() + border, -r.y() + border, s, c2, c3 ); p.end(); - tqApp->desktop()->setBackgroundPixmap( pm ); + tqApp->desktop()->setBackgroundPixmap( pm ); } // @@ -343,12 +343,12 @@ void desktopText( const char *s = "Trolltech" ) int main( int argc, char **argv ) { - TQApplication app( argc, argv ); + TQApplication app( argc, argv ); if ( argc > 1 ) { TQFont f( "charter", 96, TQFont::Black ); f.setStyleHint( TQFont::Times ); - app.setFont( f ); + app.setFont( f ); } bool validOptions = FALSE; -- cgit v1.2.1