summaryrefslogtreecommitdiffstats
path: root/examples/i18n/main.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'examples/i18n/main.cpp')
-rw-r--r--examples/i18n/main.cpp10
1 files changed, 5 insertions, 5 deletions
diff --git a/examples/i18n/main.cpp b/examples/i18n/main.cpp
index fdff78d09..e43634c46 100644
--- a/examples/i18n/main.cpp
+++ b/examples/i18n/main.cpp
@@ -71,7 +71,7 @@ MyWidget* showLang(TQString lang)
static TQTranslator *translator = 0;
- qApp->setPalette(TQPalette(TQColor(220-rand()%64,220-rand()%64,220-rand()%64)));
+ tqApp->setPalette(TQPalette(TQColor(220-rand()%64,220-rand()%64,220-rand()%64)));
lang = "mywidget_" + lang + ".qm";
TQFileInfo fi( lang );
@@ -83,12 +83,12 @@ MyWidget* showLang(TQString lang)
return 0;
}
if ( translator ) {
- qApp->removeTranslator( translator );
+ tqApp->removeTranslator( translator );
delete translator;
}
translator = new TQTranslator( 0 );
translator->load( lang, "." );
- qApp->installTranslator( translator );
+ tqApp->installTranslator( translator );
MyWidget *m = new MyWidget;
m->setCaption("TQt Example - i18n - " + m->caption() );
return m;
@@ -126,7 +126,7 @@ int main( int argc, char** argv )
r = dlg.exec();
}
if ( r ) {
- TQRect screen = qApp->desktop()->availableGeometry();
+ TQRect screen = tqApp->desktop()->availableGeometry();
bool tight = screen.width() < 1024;
int x=screen.left()+5;
int y=screen.top()+25;
@@ -135,7 +135,7 @@ int main( int argc, char** argv )
MyWidget* w = showLang((const char*)qm[i]);
if( w == 0 ) exit( 0 );
- TQObject::connect(w, SIGNAL(closed()), qApp, SLOT(quit()));
+ TQObject::connect(w, SIGNAL(closed()), tqApp, SLOT(quit()));
w->setGeometry(x,y,197,356);
w->show();
if ( tight ) {