diff options
author | Timothy Pearson <[email protected]> | 2012-02-27 02:13:42 -0600 |
---|---|---|
committer | Timothy Pearson <[email protected]> | 2012-02-27 02:13:42 -0600 |
commit | 520c05ef06ce203ad32470730f68402bc7719157 (patch) | |
tree | 8d0bb18bbbecb4c837e232848905e5819db84b81 /examples/desktop/desktop.cpp | |
parent | b82553bf90cb5311cfe8e673b07cf6cffc95fd3c (diff) | |
download | tqt3-520c05ef06ce203ad32470730f68402bc7719157.tar.gz tqt3-520c05ef06ce203ad32470730f68402bc7719157.zip |
Automated update from qt3
Diffstat (limited to 'examples/desktop/desktop.cpp')
-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 ); } // |