diff options
Diffstat (limited to 'examples/desktop')
-rw-r--r-- | examples/desktop/desktop.cpp | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/examples/desktop/desktop.cpp b/examples/desktop/desktop.cpp index 4831efe59..330c6ad35 100644 --- a/examples/desktop/desktop.cpp +++ b/examples/desktop/desktop.cpp @@ -121,7 +121,7 @@ void rotate() const int h = 64; TQImage image( w, h, 8, 128 ); // create image for ( i=0; i<128; i++ ) // build color table - image.setColor( i, qRgb(i,0,0) ); + image.setColor( i, tqRgb(i,0,0) ); for ( int y=0; y<h; y++ ) { // set image pixels uchar *p = image.scanLine(y); for ( int x=0; x<w; x++ ) @@ -261,7 +261,7 @@ void desktopWidget( const char *s = "Trolltech" ) { DesktopWidget *t = new DesktopWidget(s); t->update(); - qApp->exec(); + tqApp->exec(); delete t; } @@ -269,7 +269,7 @@ void desktopText( const char *s = "Trolltech" ) { const int border = 20; - TQColor c1 = qApp->palette().inactive().background(); + TQColor c1 = tqApp->palette().inactive().background(); TQColor c2 = c1.light(104); TQColor c3 = c1.dark(106); @@ -280,8 +280,8 @@ void desktopText( const char *s = "Trolltech" ) TQRect r = p.fontMetrics().boundingRect( s ); p.end(); - int appWidth = qApp->desktop()->width(); - int appHeight = qApp->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 ) @@ -293,7 +293,7 @@ void desktopText( const char *s = "Trolltech" ) drawShadeText( &p, -r.x() + border, -r.y() + border, s, c2, c3 ); p.end(); - qApp->desktop()->setBackgroundPixmap( pm ); + tqApp->desktop()->setBackgroundPixmap( pm ); } // |