From 520c05ef06ce203ad32470730f68402bc7719157 Mon Sep 17 00:00:00 2001 From: Timothy Pearson Date: Mon, 27 Feb 2012 02:13:42 -0600 Subject: Automated update from qt3 --- doc/html/i18n-example.html | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) (limited to 'doc/html/i18n-example.html') diff --git a/doc/html/i18n-example.html b/doc/html/i18n-example.html index a517c9493..88a09baa5 100644 --- a/doc/html/i18n-example.html +++ b/doc/html/i18n-example.html @@ -112,7 +112,7 @@ private: setCentralWidget(central); TQPopupMenu* file = new TQPopupMenu(this); - file->insertItem( tr("E&xit"), qApp, SLOT(quit()), + file->insertItem( tr("E&xit"), tqApp, SLOT(quit()), TQAccel::stringToKey(tr("Ctrl+Q")) ); menuBar()->insertItem( tr("&File"), file ); @@ -229,7 +229,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 ); @@ -241,12 +241,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; @@ -284,7 +284,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; @@ -293,7 +293,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 ) { -- cgit v1.2.1