From 8af7968d9309f6869a93ff6f1a4ef51bcff964fb Mon Sep 17 00:00:00 2001 From: tpearson Date: Mon, 4 Jul 2011 21:50:57 +0000 Subject: 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 --- src/locater.cpp | 24 ++++++++++++------------ 1 file changed, 12 insertions(+), 12 deletions(-) (limited to 'src/locater.cpp') 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 +#include #include #include @@ -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; -- cgit v1.2.1