diff options
author | tpearson <tpearson@283d02a7-25f6-0310-bc7c-ecb5cbfe19da> | 2011-06-16 19:02:47 +0000 |
---|---|---|
committer | tpearson <tpearson@283d02a7-25f6-0310-bc7c-ecb5cbfe19da> | 2011-06-16 19:02:47 +0000 |
commit | e985f7e545f4739493965aad69bbecb136dc9346 (patch) | |
tree | 54afd409d8acd6202dd8ab611d24e78c28e4c0a0 /quanta/src/kqapp.cpp | |
parent | f7670c198945adc3b95ad69a959fe5f8ae55b493 (diff) | |
download | tdewebdev-e985f7e545f4739493965aad69bbecb136dc9346.tar.gz tdewebdev-e985f7e545f4739493965aad69bbecb136dc9346.zip |
TQt4 port kdewebdev
This enables compilation under both Qt3 and Qt4
git-svn-id: svn://anonsvn.kde.org/home/kde/branches/trinity/kdewebdev@1237029 283d02a7-25f6-0310-bc7c-ecb5cbfe19da
Diffstat (limited to 'quanta/src/kqapp.cpp')
-rw-r--r-- | quanta/src/kqapp.cpp | 40 |
1 files changed, 20 insertions, 20 deletions
diff --git a/quanta/src/kqapp.cpp b/quanta/src/kqapp.cpp index 32e1044c..1f1f0401 100644 --- a/quanta/src/kqapp.cpp +++ b/quanta/src/kqapp.cpp @@ -1,5 +1,5 @@ /* - KQApplication.cpp + KTQApplication.cpp KNode, the KDE newsreader Copyright (c) 1999-2001 the KNode authors. @@ -59,7 +59,7 @@ KSplash::~KSplash() } -KQApplication::KQApplication() +KTQApplication::KTQApplication() : KApplication() { args = KCmdLineArgs::parsedArgs(); @@ -80,12 +80,12 @@ KQApplication::KQApplication() KConfig *config = kapp->config(); config->setGroup("General Options"); int mdiMode = config->readNumEntry("MDI mode", KMdi::IDEAlMode); - TQString layout = config->readEntry("Window layout", "Default"); - if (layout == "Default" || args->isSet("resetlayout")) + TQString tqlayout = config->readEntry("Window tqlayout", "Default"); + if (tqlayout == "Default" || args->isSet("resettqlayout")) { mdiMode = KMdi::IDEAlMode; config->writeEntry("MDI mode", KMdi::IDEAlMode); - config->writeEntry("Window layout", "Default"); + config->writeEntry("Window tqlayout", "Default"); } quantaApp = new QuantaApp(mdiMode); config->setGroup("General Options"); @@ -101,16 +101,16 @@ KQApplication::KQApplication() } } -void KQApplication::slotInit() +void KTQApplication::slotInit() { - KQApplicationPrivate::init(); + KTQApplicationPrivate::init(); } -KQApplication::~KQApplication() +KTQApplication::~KTQApplication() { } -void KQApplication::slotSplashTimeout() +void KTQApplication::slotSplashTimeout() { delete splash; delete sp; @@ -118,19 +118,19 @@ void KQApplication::slotSplashTimeout() sp = 0L; } -KQUniqueApplication::KQUniqueApplication() +KTQUniqueApplication::KTQUniqueApplication() : KUniqueApplication() { KGlobal::dirs()->addPrefix(PREFIX); dcopClient()->registerAs("quanta", false); } -KQUniqueApplication::~KQUniqueApplication() +KTQUniqueApplication::~KTQUniqueApplication() { } -int KQUniqueApplication::newInstance() +int KTQUniqueApplication::newInstance() { args = KCmdLineArgs::parsedArgs(); if (mainWidget()) @@ -151,11 +151,11 @@ int KQUniqueApplication::newInstance() KConfig *config = kapp->config(); config->setGroup("General Options"); int mdiMode = config->readNumEntry("MDI mode", KMdi::IDEAlMode); - TQString layout = config->readEntry("Window layout", "Default"); - if (layout == "Default" || args->isSet("resetlayout")) + TQString tqlayout = config->readEntry("Window tqlayout", "Default"); + if (tqlayout == "Default" || args->isSet("resettqlayout")) { mdiMode = KMdi::IDEAlMode; - config->writeEntry("Window layout", "Default"); + config->writeEntry("Window tqlayout", "Default"); config->writeEntry("MDI mode", KMdi::IDEAlMode); } quantaApp = new QuantaApp(mdiMode); @@ -174,12 +174,12 @@ int KQUniqueApplication::newInstance() return 0; } -void KQUniqueApplication::slotInit() +void KTQUniqueApplication::slotInit() { - KQApplicationPrivate::init(); + KTQApplicationPrivate::init(); } -void KQUniqueApplication::slotSplashTimeout() +void KTQUniqueApplication::slotSplashTimeout() { delete splash; delete sp; @@ -188,7 +188,7 @@ void KQUniqueApplication::slotSplashTimeout() } -void KQApplicationPrivate::init() +void KTQApplicationPrivate::init() { if (quantaApp->quantaStarted) { @@ -203,7 +203,7 @@ void KQApplicationPrivate::init() { TQString arg = args->url(i).url(); - if(arg.findRev(TQRegExp(".+\\.webprj")) != -1) + if(arg.tqfindRev(TQRegExp(".+\\.webprj")) != -1) initialProject = arg; else initialFiles += arg; |