diff options
Diffstat (limited to 'examples/themes')
-rw-r--r-- | examples/themes/themes.cpp | 24 |
1 files changed, 12 insertions, 12 deletions
diff --git a/examples/themes/themes.cpp b/examples/themes/themes.cpp index 3cd7e0405..1f5417625 100644 --- a/examples/themes/themes.cpp +++ b/examples/themes/themes.cpp @@ -86,7 +86,7 @@ Themes::Themes( TQWidget *parent, const char *name, WFlags f ) } ag->addTo(style); style->insertSeparator(); - style->insertItem("&Quit", qApp, SLOT( quit() ), CTRL | Key_Q ); + style->insertItem("&Quit", tqApp, SLOT( quit() ), CTRL | Key_Q ); TQPopupMenu * help = new TQPopupMenu( this ); menuBar()->insertSeparator(); @@ -95,7 +95,7 @@ Themes::Themes( TQWidget *parent, const char *name, WFlags f ) help->insertItem( "About &TQt", this, SLOT(aboutTQt())); #ifndef QT_NO_STYLE_WINDOWS - qApp->setStyle( new NorwegianWoodStyle ); + tqApp->setStyle( new NorwegianWoodStyle ); #endif } @@ -103,20 +103,20 @@ void Themes::makeStyle(const TQString &style) { if(style == "Norwegian Wood") { #ifndef QT_NO_STYLE_WINDOWS - qApp->setStyle( new NorwegianWoodStyle ); + tqApp->setStyle( new NorwegianWoodStyle ); #endif } else if( style == "Metal" ) { #ifndef QT_NO_STYLE_WINDOWS - qApp->setStyle( new MetalStyle ); + tqApp->setStyle( new MetalStyle ); #endif } else { - qApp->setStyle(style); + tqApp->setStyle(style); if(style == "Platinum") { TQPalette p( TQColor( 239, 239, 239 ) ); - qApp->setPalette( p, TRUE ); - qApp->setFont( appFont, TRUE ); + tqApp->setPalette( p, TRUE ); + tqApp->setFont( appFont, TRUE ); } else if(style == "Windows") { - qApp->setFont( appFont, TRUE ); + tqApp->setFont( appFont, TRUE ); } else if(style == "CDE") { TQPalette p( TQColor( 75, 123, 130 ) ); p.setColor( TQPalette::Active, TQColorGroup::Base, TQColor( 55, 77, 78 ) ); @@ -137,12 +137,12 @@ void Themes::makeStyle(const TQString &style) p.setColor( TQPalette::Disabled, TQColorGroup::Foreground, TQt::lightGray ); p.setColor( TQPalette::Disabled, TQColorGroup::Text, TQt::lightGray ); p.setColor( TQPalette::Disabled, TQColorGroup::ButtonText, TQt::lightGray ); - qApp->setPalette( p, TRUE ); - qApp->setFont( TQFont( "times", appFont.pointSize() ), TRUE ); + tqApp->setPalette( p, TRUE ); + tqApp->setFont( TQFont( "times", appFont.pointSize() ), TRUE ); } else if(style == "Motif" || style == "MotifPlus") { TQPalette p( TQColor( 192, 192, 192 ) ); - qApp->setPalette( p, TRUE ); - qApp->setFont( appFont, TRUE ); + tqApp->setPalette( p, TRUE ); + tqApp->setFont( appFont, TRUE ); } } } |