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.h | 21 +++++++++++---------- 1 file changed, 11 insertions(+), 10 deletions(-) (limited to 'src/locater.h') diff --git a/src/locater.h b/src/locater.h index e083d2a..7674838 100644 --- a/src/locater.h +++ b/src/locater.h @@ -26,8 +26,8 @@ #ifndef LOCATER_H #define LOCATER_H -#include -#include +#include +#include #include @@ -44,14 +44,15 @@ * found. * - When finished the signal finished is emitted. */ -class Locater : public QObject +class Locater : public TQObject { Q_OBJECT + TQ_OBJECT public: /** * Constructor */ - Locater(QObject *parent = 0, const char *name = 0); + Locater(TQObject *tqparent = 0, const char *name = 0); virtual ~Locater(); @@ -62,7 +63,7 @@ class Locater : public QObject * @param regExp whether to treat pattern as a regular expression or not * @return true if locate could be started */ - bool locate(const QString& pattern, bool ignoreCase = false, bool regExp = false); + bool locate(const TQString& pattern, bool ignoreCase = false, bool regExp = false); /** * Set parameters for using locate. @@ -70,11 +71,11 @@ class Locater : public QObject * slocate, rlocate and locate) * @param additionalArguments additional arguments to use */ - void setupLocate(const QString& binary = "", const QString& additionalArguments = ""); + void setupLocate(const TQString& binary = "", const TQString& additionalArguments = ""); void stop(); - QString binary() { return m_binary; } + TQString binary() { return m_binary; } bool binaryExists() { return m_binaryExists; } signals: @@ -82,7 +83,7 @@ class Locater : public QObject * Emitted whenever some new files are found. * @param items a list of the new filenames */ - void found(const QStringList& items); + void found(const TQStringList& items); /** * Emitted when the search is finished. @@ -95,8 +96,8 @@ class Locater : public QObject private: KProcIO m_process; - QString m_binary; - QString m_additionalArguments; + TQString m_binary; + TQString m_additionalArguments; bool m_binaryExists; }; -- cgit v1.2.3