diff options
Diffstat (limited to 'libkdepim/spellingfilter.h')
-rw-r--r-- | libkdepim/spellingfilter.h | 30 |
1 files changed, 15 insertions, 15 deletions
diff --git a/libkdepim/spellingfilter.h b/libkdepim/spellingfilter.h index 5d33aae88..ac0fe02d7 100644 --- a/libkdepim/spellingfilter.h +++ b/libkdepim/spellingfilter.h @@ -23,8 +23,8 @@ #ifndef SPELLINGFILTER_H_INCLUDED #define SPELLINGFILTER_H_INCLUDED -#include <qstring.h> -#include <qstringlist.h> +#include <tqstring.h> +#include <tqstringlist.h> #include "linklocator.h" #include <kdepimmacros.h> @@ -35,40 +35,40 @@ public: enum UrlFiltering { DontFilterUrls, FilterUrls }; enum EmailAddressFiltering { DontFilterEmailAddresses, FilterEmailAddresses }; - SpellingFilter(const QString& text, const QString& quotePrefix, + SpellingFilter(const TQString& text, const TQString& quotePrefix, UrlFiltering filterUrls = FilterUrls, EmailAddressFiltering filterEmailAddresses = FilterEmailAddresses, - const QStringList& filterStrings = QStringList()); + const TQStringList& filterStrings = TQStringList()); - QString originalText() const; - QString filteredText() const; + TQString originalText() const; + TQString filteredText() const; class TextCensor; private: - const QString mOriginal; - QString mFiltered; + const TQString mOriginal; + TQString mFiltered; }; class SpellingFilter::TextCensor : public LinkLocator { public: - TextCensor(const QString& s); + TextCensor(const TQString& s); - void censorQuotations(const QString& quotePrefix); + void censorQuotations(const TQString& quotePrefix); void censorUrls(); void censorEmailAddresses(); - void censorString(const QString& s); + void censorString(const TQString& s); - QString censoredText() const; + TQString censoredText() const; private: bool atLineStart() const; void skipLine(); - bool atQuotation(const QString& quotePrefix) const; - void skipQuotation(const QString& quotePrefix); - void findQuotation(const QString& quotePrefix); + bool atQuotation(const TQString& quotePrefix) const; + void skipQuotation(const TQString& quotePrefix); + void findQuotation(const TQString& quotePrefix); void findEmailAddress(); }; |