summaryrefslogtreecommitdiffstats
path: root/kget/settings.cpp
diff options
context:
space:
mode:
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);