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/pattern.h | |
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/pattern.h')
-rw-r--r-- | src/pattern.h | 26 |
1 files changed, 13 insertions, 13 deletions
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 <qregexp.h> -#include <qstring.h> -#include <qvaluelist.h> +#include <tqregexp.h> +#include <tqstring.h> +#include <tqvaluelist.h> /** * 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<LocateRegExp> +class LocateRegExpList: public TQValueList<LocateRegExp> { public: virtual ~LocateRegExpList(); @@ -94,21 +94,21 @@ class LocateRegExpList: public QValueList<LocateRegExp> * 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 |