summaryrefslogtreecommitdiffstats
path: root/src/modules/setup/libkvisetup.cpp
diff options
context:
space:
mode:
authortpearson <tpearson@283d02a7-25f6-0310-bc7c-ecb5cbfe19da>2011-06-28 18:31:12 +0000
committertpearson <tpearson@283d02a7-25f6-0310-bc7c-ecb5cbfe19da>2011-06-28 18:31:12 +0000
commit0a80cfd57d271dd44221467efb426675fa470356 (patch)
tree6f503a31aa078eaf8fa015cf1749808529d49fc9 /src/modules/setup/libkvisetup.cpp
parent3329e5a804e28ef3f5eb51d1e7affdd5a508e8f2 (diff)
downloadkvirc-0a80cfd57d271dd44221467efb426675fa470356.tar.gz
kvirc-0a80cfd57d271dd44221467efb426675fa470356.zip
TQt4 port kvirc
This enables compilation under both Qt3 and Qt4 git-svn-id: svn://anonsvn.kde.org/home/kde/branches/trinity/applications/kvirc@1238719 283d02a7-25f6-0310-bc7c-ecb5cbfe19da
Diffstat (limited to 'src/modules/setup/libkvisetup.cpp')
-rw-r--r--src/modules/setup/libkvisetup.cpp22
1 files changed, 11 insertions, 11 deletions
diff --git a/src/modules/setup/libkvisetup.cpp b/src/modules/setup/libkvisetup.cpp
index 7f5bad25..07ffc359 100644
--- a/src/modules/setup/libkvisetup.cpp
+++ b/src/modules/setup/libkvisetup.cpp
@@ -26,8 +26,8 @@
#include "setupwizard.h"
-#include <qstring.h>
-#include <qfile.h>
+#include <tqstring.h>
+#include <tqfile.h>
#include "kvi_options.h"
#include "kvi_defaults.h"
@@ -39,14 +39,14 @@
#include "kvi_ircserverdb.h"
// this will be choosen during the setup process
-QString g_szChoosenIncomingDirectory;
+TQString g_szChoosenIncomingDirectory;
//int g_iThemeToApply = THEME_APPLY_NONE;
bool bNeedToApplyDefaults;
unsigned int uPort;
-QString szHost;
-QString szUrl;
-QString szMircServers;
-QString szMircIni;
+TQString szHost;
+TQString szUrl;
+TQString szMircServers;
+TQString szMircIni;
@@ -61,7 +61,7 @@ KVIMODULEEXPORTFUNC bool setup_begin()
KviSetupWizard * w = new KviSetupWizard();
int retcode = w->exec();
delete w;
- return (retcode == QDialog::Accepted);
+ return (retcode == TQDialog::Accepted);
}
@@ -76,8 +76,8 @@ KVIMODULEEXPORTFUNC void setup_finish()
KVI_OPTION_STRING(KviOption_stringIncomingPath) = g_szChoosenIncomingDirectory;
// Reset the quit message and the real name... if they contain the KVIrc version
// then probably the user hasn't even edited them.
- if(KVI_OPTION_STRING(KviOption_stringQuitMessage).find("KVIrc",0,false) != -1)
- KVI_OPTION_STRING(KviOption_stringQuitMessage) = KVI_DEFAULT_QUIT_MESSAGE;
+ if(KVI_OPTION_STRING(KviOption_stringQuitMessage).tqfind("KVIrc",0,false) != -1)
+ KVI_OPTION_STRING(KviOption_stringQuitMessage) = KVI_DEFAULT_TQUIT_MESSAGE;
// We deserve to change the user's part message in something nice :)
KVI_OPTION_STRING(KviOption_stringPartMessage) = KVI_DEFAULT_PART_MESSAGE;
@@ -86,7 +86,7 @@ KVIMODULEEXPORTFUNC void setup_finish()
// #define KVI_DEFAULT_AWAY_MESSAGE "I'm off to see the wizard."
// Apply the choosen default theme
- QString szDir;
+ TQString szDir;
/* switch(g_iThemeToApply)
{
case THEME_APPLY_HIRES: