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/pattern.h | 26 +++++++++++++------------- 1 file changed, 13 insertions(+), 13 deletions(-) (limited to 'src/pattern.h') diff --git a/src/pattern.h b/src/pattern.h index 8e17a69..fb4651f 100644 --- a/src/pattern.h +++ b/src/pattern.h @@ -26,9 +26,9 @@ #ifndef PATTERN_H #define PATTERN_H -#include -#include -#include +#include +#include +#include /** * Regular Expression adapted to the needs of kio-locate. @@ -41,7 +41,7 @@ public: * @param pattern the pattern to start with * @param ignoreCase specifies, if the search should be case sensitive */ - LocateRegExp(const QString& pattern, bool ignoreCase = false); + LocateRegExp(const TQString& pattern, bool ignoreCase = false); LocateRegExp(); virtual ~LocateRegExp(); @@ -50,7 +50,7 @@ public: * Determines whether a file name is matching this regular expression. * @param file the filename to match */ - virtual bool isMatching(const QString& file) const; + virtual bool isMatching(const TQString& file) const; /** * @return The position of the last match. @@ -67,25 +67,25 @@ public: * @param pattern the pattern to search for. It may be prepended by an * exclamation mark, to invert its meaning. */ - virtual void setPattern(const QString& pattern); + virtual void setPattern(const TQString& pattern); /** * Get the pattern. * @return search pattern */ - virtual QString getPattern() const; + virtual TQString getPattern() const; private: bool m_negated; bool m_ignoreCase; - QRegExp m_regExp; - QString m_pattern; + TQRegExp m_regExp; + TQString m_pattern; }; /** * List of regular expressions */ -class LocateRegExpList: public QValueList +class LocateRegExpList: public TQValueList { public: virtual ~LocateRegExpList(); @@ -94,21 +94,21 @@ class LocateRegExpList: public QValueList * Converts a stringlist into a regexplist. * @param list the stringlist to convert */ - LocateRegExpList& operator = (const QStringList& list); + LocateRegExpList& operator = (const TQStringList& list); /** * Determines whether a file name is matching at least one regular * expression in the list. * @param file the filename to match */ - virtual bool isMatchingOne(const QString& file) const; + virtual bool isMatchingOne(const TQString& file) const; /** * Determines whether a file name is matching all regular expressions * in the list. * @param file the filename to match */ - virtual bool isMatchingAll(const QString& file) const; + virtual bool isMatchingAll(const TQString& file) const; }; #endif -- cgit v1.2.1