summaryrefslogtreecommitdiffstats
path: root/examples/themes/themes.cpp
diff options
context:
space:
mode:
authorTimothy Pearson <[email protected]>2012-02-27 02:13:42 -0600
committerTimothy Pearson <[email protected]>2012-02-27 02:13:42 -0600
commit520c05ef06ce203ad32470730f68402bc7719157 (patch)
tree8d0bb18bbbecb4c837e232848905e5819db84b81 /examples/themes/themes.cpp
parentb82553bf90cb5311cfe8e673b07cf6cffc95fd3c (diff)
downloadtqt3-520c05ef06ce203ad32470730f68402bc7719157.tar.gz
tqt3-520c05ef06ce203ad32470730f68402bc7719157.zip
Automated update from qt3
Diffstat (limited to 'examples/themes/themes.cpp')
-rw-r--r--examples/themes/themes.cpp24
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 );
}
}
}