summaryrefslogtreecommitdiffstats
path: root/kget/settings.cpp
diff options
context:
space:
mode:
authortpearson <tpearson@283d02a7-25f6-0310-bc7c-ecb5cbfe19da>2010-07-31 19:48:06 +0000
committertpearson <tpearson@283d02a7-25f6-0310-bc7c-ecb5cbfe19da>2010-07-31 19:48:06 +0000
commit47c8a359c5276062c4bc17f0e82410f29081b502 (patch)
tree2d54a5f60a5b74067632f9ef6df58c2bc38155e6 /kget/settings.cpp
parent6f82532777a35e0e60bbd2b290b2e93e646f349b (diff)
downloadtdenetwork-47c8a359c5276062c4bc17f0e82410f29081b502.tar.gz
tdenetwork-47c8a359c5276062c4bc17f0e82410f29081b502.zip
Trinity Qt initial conversion
git-svn-id: svn://anonsvn.kde.org/home/kde/branches/trinity/kdenetwork@1157648 283d02a7-25f6-0310-bc7c-ecb5cbfe19da
Diffstat (limited to 'kget/settings.cpp')
-rw-r--r--kget/settings.cpp22
1 files changed, 11 insertions, 11 deletions
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 <kglobalsettings.h>
#include <netwm_def.h>
-#include <qdir.h>
+#include <tqdir.h>
#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);