From 47c8a359c5276062c4bc17f0e82410f29081b502 Mon Sep 17 00:00:00 2001 From: tpearson Date: Sat, 31 Jul 2010 19:48:06 +0000 Subject: Trinity Qt initial conversion git-svn-id: svn://anonsvn.kde.org/home/kde/branches/trinity/kdenetwork@1157648 283d02a7-25f6-0310-bc7c-ecb5cbfe19da --- kget/settings.cpp | 22 +++++++++++----------- 1 file changed, 11 insertions(+), 11 deletions(-) (limited to 'kget/settings.cpp') diff --git a/kget/settings.cpp b/kget/settings.cpp index da066a6a..942acb09 100644 --- a/kget/settings.cpp +++ b/kget/settings.cpp @@ -33,7 +33,7 @@ #include #include -#include +#include #include "kmainwidget.h" #include "transferlist.h" @@ -44,7 +44,7 @@ static const unsigned long DEFAULT_DOCK_STATE = (NET::SkipTaskbar | NET::StaysOnTop); -QString ConnectionDevices[6] = { +TQString ConnectionDevices[6] = { "", "eth", "plip", @@ -91,7 +91,7 @@ Settings::load() b_timedDisconnect = config->readBoolEntry("TimedDisconnect", DEF_TimedDisconnect); disconnectTime.setHMS(config->readNumEntry("DisconnectTimeHour"), config->readNumEntry("DisconnectTimeMinute"), 0); - disconnectDate = QDate::currentDate(); // doesn't make sense to save it + disconnectDate = TQDate::currentDate(); // doesn't make sense to save it b_autoShutdown = config->readBoolEntry("AutoShutdown", DEF_AutoShutdown); b_autoPaste = config->readBoolEntry("AutoPaste", DEF_AutoPaste); @@ -120,7 +120,7 @@ Settings::load() KConfig *cfg = new KConfig("konquerorrc", false, false); cfg->setGroup("HTML Settings"); - QString downloadManager=cfg->readPathEntry("DownloadManager"); + TQString downloadManager=cfg->readPathEntry("DownloadManager"); b_KonquerorIntegration=(downloadManager==KGET_APP_NAME)?true:false; @@ -131,7 +131,7 @@ Settings::load() bool bAnswerYes = KMessageBox::questionYesNo(0L,i18n("This is the first time that you have run KGet.\nDo you want to use KGet as Download Manager for Konqueror?"), i18n("Konqueror Integration"), i18n("Enable"), i18n("Do Not Enable")) == KMessageBox::Yes; if (bAnswerYes) { - cfg->writePathEntry("DownloadManager", QString(KGET_APP_NAME)); + cfg->writePathEntry("DownloadManager", TQString(KGET_APP_NAME)); cfg->sync(); b_KonquerorIntegration=true; } @@ -151,14 +151,14 @@ Settings::load() b_useLastDir = config->readBoolEntry("UseLastDirectory", DEF_UseLastDir); lastDirectory = config->readPathEntry("LastDirectory", - QString("file:") + QDir::currentDirPath() ); + TQString("file:") + TQDir::currentDirPath() ); - QStringList strList; + TQStringList strList; strList = config->readPathListEntry("Items"); defaultDirList.clear(); - QStringList::Iterator it = strList.begin(); + TQStringList::Iterator it = strList.begin(); for (; it != strList.end(); ++it) { DirItem item; @@ -171,13 +171,13 @@ Settings::load() // read misc settings config->setGroup("Misc"); - QFont font = KGlobalSettings::generalFont(); + TQFont font = KGlobalSettings::generalFont(); listViewFont = config->readFontEntry("Font", &font); // read main window geometry settings config->setGroup("MainGeometry"); - const QPoint point(-1,-1); + const TQPoint point(-1,-1); mainPosition = config->readPointEntry("Position", &point); mainSize = config->readSizeEntry("Size"); mainState = config->readUnsignedLongNumEntry("State", 0); @@ -253,7 +253,7 @@ void Settings::save() config->writeEntry("UseLastDirectory", b_useLastDir); config->writePathEntry("LastDirectory", lastDirectory ); DirList::Iterator it; - QStringList lst; + TQStringList lst; for (it = defaultDirList.begin(); it != defaultDirList.end(); ++it) { lst.append((*it).extRegexp); -- cgit v1.2.1