diff options
Diffstat (limited to 'quanta/src/kqapp.cpp')
-rw-r--r-- | quanta/src/kqapp.cpp | 32 |
1 files changed, 16 insertions, 16 deletions
diff --git a/quanta/src/kqapp.cpp b/quanta/src/kqapp.cpp index 6e7f02df..1bf2055d 100644 --- a/quanta/src/kqapp.cpp +++ b/quanta/src/kqapp.cpp @@ -16,7 +16,7 @@ Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, US */ -#include <qtimer.h> +#include <tqtimer.h> #include <kconfig.h> #include <kdebug.h> @@ -41,13 +41,13 @@ QuantaApp *quantaApp = 0L; //global pointer to the main application object #define SPLASH_PICTURE "quantalogo" KSplash::KSplash() - : QFrame( 0L, QString("Quanta")+QUANTA_VERSION, - QWidget::WStyle_NoBorder | QWidget::WStyle_Customize | WX11BypassWM) + : TQFrame( 0L, TQString("Quanta")+QUANTA_VERSION, + TQWidget::WStyle_NoBorder | TQWidget::WStyle_Customize | WX11BypassWM) { - QPixmap pm( UserIcon(SPLASH_PICTURE) ); + TQPixmap pm( UserIcon(SPLASH_PICTURE) ); setBackgroundPixmap(pm); - QRect desk = KGlobalSettings::splashScreenDesktopGeometry(); + TQRect desk = KGlobalSettings::splashScreenDesktopGeometry(); setGeometry( desk.center().x()-225, desk.center().y()-150, 450, 300 ); setLineWidth(0); show(); @@ -80,7 +80,7 @@ KQApplication::KQApplication() KConfig *config = kapp->config(); config->setGroup("General Options"); int mdiMode = config->readNumEntry("MDI mode", KMdi::IDEAlMode); - QString layout = config->readEntry("Window layout", "Default"); + TQString layout = config->readEntry("Window layout", "Default"); if (layout == "Default" || args->isSet("resetlayout")) { mdiMode = KMdi::IDEAlMode; @@ -93,8 +93,8 @@ KQApplication::KQApplication() { sp = new KSplashScreen(UserIcon(SPLASH_PICTURE)); sp->show(); - connect(quantaApp, SIGNAL(showSplash(bool)), sp, SLOT(setShown(bool))); - QTimer::singleShot(10*1000, this, SLOT(slotSplashTimeout())); + connect(quantaApp, TQT_SIGNAL(showSplash(bool)), sp, TQT_SLOT(setShown(bool))); + TQTimer::singleShot(10*1000, this, TQT_SLOT(slotSplashTimeout())); } setMainWidget(quantaApp); slotInit(); @@ -151,7 +151,7 @@ int KQUniqueApplication::newInstance() KConfig *config = kapp->config(); config->setGroup("General Options"); int mdiMode = config->readNumEntry("MDI mode", KMdi::IDEAlMode); - QString layout = config->readEntry("Window layout", "Default"); + TQString layout = config->readEntry("Window layout", "Default"); if (layout == "Default" || args->isSet("resetlayout")) { mdiMode = KMdi::IDEAlMode; @@ -164,8 +164,8 @@ int KQUniqueApplication::newInstance() { sp = new KSplashScreen(UserIcon(SPLASH_PICTURE)); sp->show(); - connect(quantaApp, SIGNAL(showSplash(bool)), sp, SLOT(setShown(bool))); - QTimer::singleShot(10*1000, this, SLOT(slotSplashTimeout())); + connect(quantaApp, TQT_SIGNAL(showSplash(bool)), sp, TQT_SLOT(setShown(bool))); + TQTimer::singleShot(10*1000, this, TQT_SLOT(slotSplashTimeout())); } setMainWidget(quantaApp); slotInit(); @@ -197,13 +197,13 @@ void KQApplicationPrivate::init() quantaApp->m_quantaInit->initQuanta(); quantaApp->show(); - QString initialProject; - QStringList initialFiles; + TQString initialProject; + TQStringList initialFiles; for (int i = 0; i < args->count(); i++ ) { - QString arg = args->url(i).url(); + TQString arg = args->url(i).url(); - if(arg.findRev(QRegExp(".+\\.webprj")) != -1) + if(arg.findRev(TQRegExp(".+\\.webprj")) != -1) initialProject = arg; else initialFiles += arg; @@ -212,7 +212,7 @@ void KQApplicationPrivate::init() //recoverCrashed manages the autosaved copies quantaApp->m_quantaInit->recoverCrashed(initialFiles); - for(QStringList::Iterator it = initialFiles.begin();it != initialFiles.end();++it) + for(TQStringList::Iterator it = initialFiles.begin();it != initialFiles.end();++it) { KURL url; QuantaCommon::setUrl(url, (*it)); |