summaryrefslogtreecommitdiffstats
path: root/examples/demo
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/demo
parentb82553bf90cb5311cfe8e673b07cf6cffc95fd3c (diff)
downloadtqt3-520c05ef06ce203ad32470730f68402bc7719157.tar.gz
tqt3-520c05ef06ce203ad32470730f68402bc7719157.zip
Automated update from qt3
Diffstat (limited to 'examples/demo')
-rw-r--r--examples/demo/frame.cpp8
-rw-r--r--examples/demo/i18n/i18n.cpp14
-rw-r--r--examples/demo/main.cpp2
-rw-r--r--examples/demo/textdrawing/textedit.cpp2
4 files changed, 13 insertions, 13 deletions
diff --git a/examples/demo/frame.cpp b/examples/demo/frame.cpp
index 2c7152b5d..0cd5006a3 100644
--- a/examples/demo/frame.cpp
+++ b/examples/demo/frame.cpp
@@ -132,10 +132,10 @@ void Frame::setStyle( const TQString& style )
void Frame::updateTranslators()
{
if ( !qt_translator ) {
- qt_translator = new TQTranslator( qApp );
- translator = new TQTranslator( qApp );
- qApp->installTranslator( qt_translator );
- qApp->installTranslator( translator );
+ qt_translator = new TQTranslator( tqApp );
+ translator = new TQTranslator( tqApp );
+ tqApp->installTranslator( qt_translator );
+ tqApp->installTranslator( translator );
}
TQString base = TQDir("../../translations").absPath();
diff --git a/examples/demo/i18n/i18n.cpp b/examples/demo/i18n/i18n.cpp
index 1fba89252..925fdf139 100644
--- a/examples/demo/i18n/i18n.cpp
+++ b/examples/demo/i18n/i18n.cpp
@@ -114,14 +114,14 @@ void I18nDemo::newSlot(int id)
}
if (lastwrapper) {
- qApp->removeTranslator(&lastwrapper->translator);
+ tqApp->removeTranslator(&lastwrapper->translator);
lastwrapper = 0;
}
Wrapper *wrapper = new Wrapper(workspace, windowIdNumber);
wrapper->translator.load(qmfile, ".");
- qApp->installTranslator(&wrapper->translator);
+ tqApp->installTranslator(&wrapper->translator);
connect(wrapper, SIGNAL(destroyed()), SLOT(wrapperDead()));
wrapper->setCaption(tr("--language--"));
@@ -139,7 +139,7 @@ void I18nDemo::newSlot(int id)
"<p>See <tt>http://www.trolltech.com/qt/</tt> for more "
"information.</p>").arg(TQT_VERSION_STR));
- qApp->removeTranslator(&wrapper->translator);
+ tqApp->removeTranslator(&wrapper->translator);
te->show();
wrapper->show();
@@ -173,7 +173,7 @@ void I18nDemo::windowSlot(int id)
void I18nDemo::windowActivated(TQWidget *w)
{
if (lastwrapper) {
- qApp->removeTranslator(&lastwrapper->translator);
+ tqApp->removeTranslator(&lastwrapper->translator);
windowMenu->setItemChecked(lastwrapper->id, FALSE);
}
@@ -221,7 +221,7 @@ void I18nDemo::wrapperDead()
Wrapper *w = (Wrapper *) sender();
if (w == lastwrapper) {
- qApp->removeTranslator(&w->translator);
+ tqApp->removeTranslator(&w->translator);
lastwrapper = 0;
}
@@ -240,7 +240,7 @@ void I18nDemo::showEvent(TQShowEvent *)
if (! lastwrapper)
return;
- qApp->installTranslator(&lastwrapper->translator);
+ tqApp->installTranslator(&lastwrapper->translator);
}
@@ -249,5 +249,5 @@ void I18nDemo::hideEvent(TQHideEvent *)
if (! lastwrapper)
return;
- qApp->removeTranslator(&lastwrapper->translator);
+ tqApp->removeTranslator(&lastwrapper->translator);
}
diff --git a/examples/demo/main.cpp b/examples/demo/main.cpp
index 295847ac5..d2d86ec3e 100644
--- a/examples/demo/main.cpp
+++ b/examples/demo/main.cpp
@@ -59,7 +59,7 @@
static void qdemo_set_caption( CategoryInterface *c, int i )
{
- TQWidget *w = qApp->mainWidget();
+ TQWidget *w = tqApp->mainWidget();
if ( !w )
return;
TQString title = Frame::tr( "TQt Demo Collection" );
diff --git a/examples/demo/textdrawing/textedit.cpp b/examples/demo/textdrawing/textedit.cpp
index c17aa5084..d76f16a0e 100644
--- a/examples/demo/textdrawing/textedit.cpp
+++ b/examples/demo/textdrawing/textedit.cpp
@@ -316,7 +316,7 @@ void TextEdit::fileClose()
void TextEdit::fileExit()
{
- qApp->quit();
+ tqApp->quit();
}
void TextEdit::editUndo()