diff options
author | tpearson <tpearson@283d02a7-25f6-0310-bc7c-ecb5cbfe19da> | 2011-07-04 21:50:57 +0000 |
---|---|---|
committer | tpearson <tpearson@283d02a7-25f6-0310-bc7c-ecb5cbfe19da> | 2011-07-04 21:50:57 +0000 |
commit | 8af7968d9309f6869a93ff6f1a4ef51bcff964fb (patch) | |
tree | f875b03e53eb9170c93fc2d2a9d1047e570789e8 /src/locater.cpp | |
parent | 0cbbdc735b3069758b90527554e43ad905e46665 (diff) | |
download | tdeio-locate-8af7968d9309f6869a93ff6f1a4ef51bcff964fb.tar.gz tdeio-locate-8af7968d9309f6869a93ff6f1a4ef51bcff964fb.zip |
TQt4 port kio-locate
This enables compilation under both Qt3 and Qt4
git-svn-id: svn://anonsvn.kde.org/home/kde/branches/trinity/applications/kio-locate@1239314 283d02a7-25f6-0310-bc7c-ecb5cbfe19da
Diffstat (limited to 'src/locater.cpp')
-rw-r--r-- | src/locater.cpp | 24 |
1 files changed, 12 insertions, 12 deletions
diff --git a/src/locater.cpp b/src/locater.cpp index 4072209..f221a6e 100644 --- a/src/locater.cpp +++ b/src/locater.cpp @@ -23,7 +23,7 @@ * (at your option) any later version. * ***************************************************************************/ -#include <qtextcodec.h> +#include <tqtextcodec.h> #include <kdebug.h> #include <kstandarddirs.h> @@ -31,15 +31,15 @@ #include "locater.h" -Locater::Locater(QObject *parent, const char *name) - : QObject(parent, name), m_process(QTextCodec::codecForLocale()) +Locater::Locater(TQObject *tqparent, const char *name) + : TQObject(tqparent, name), m_process(TQTextCodec::codecForLocale()) { DEBUGSTR << "Locater::Locater" << endl; - connect(&m_process, SIGNAL(processExited(KProcess*)), - this, SLOT(finished(KProcess*))); - connect(&m_process, SIGNAL(readReady(KProcIO*)), - this, SLOT(gotOutput(KProcIO*))); + connect(&m_process, TQT_SIGNAL(processExited(KProcess*)), + this, TQT_SLOT(finished(KProcess*))); + connect(&m_process, TQT_SIGNAL(readReady(KProcIO*)), + this, TQT_SLOT(gotOutput(KProcIO*))); setupLocate(); } @@ -51,7 +51,7 @@ Locater::~Locater() } -void Locater::setupLocate(const QString& binary, const QString& additionalArguments) +void Locater::setupLocate(const TQString& binary, const TQString& additionalArguments) { DEBUGSTR << "Locater::setupLocate(" << binary << ", " << additionalArguments << ")" << endl; @@ -69,11 +69,11 @@ void Locater::setupLocate(const QString& binary, const QString& additionalArgume m_binary = binary; } m_additionalArguments = additionalArguments; - m_binaryExists = KStandardDirs::findExe(m_binary) != QString::null; + m_binaryExists = KStandardDirs::findExe(m_binary) != TQString(); } -bool Locater::locate(const QString& pattern, bool ignoreCase, bool regExp) +bool Locater::locate(const TQString& pattern, bool ignoreCase, bool regExp) { DEBUGSTR << "Locater::locate(" << pattern << "," << ignoreCase << "," << regExp << ")" << endl; @@ -107,8 +107,8 @@ void Locater::gotOutput(KProcIO* /*proc*/) { //DEBUGSTR << "Locater::gotOutput" << endl; - QStringList items; - QString line; + TQStringList items; + TQString line; while (m_process.readln(line) != -1) { //DEBUGSTR << "OUTPUT>> '" << line << "'" << endl; |