summaryrefslogtreecommitdiffstats
path: root/libkdepim/spellingfilter.h
diff options
context:
space:
mode:
authortpearson <tpearson@283d02a7-25f6-0310-bc7c-ecb5cbfe19da>2010-07-31 19:53:50 +0000
committertpearson <tpearson@283d02a7-25f6-0310-bc7c-ecb5cbfe19da>2010-07-31 19:53:50 +0000
commit7be55ffa061c026e35e2d6a0effe1161ddb0d41f (patch)
tree8474f9b444b2756228600050f07a7ff25de532b2 /libkdepim/spellingfilter.h
parentf587f20a6d09f1729dd0a8c1cd8ee0110aec7451 (diff)
downloadtdepim-7be55ffa061c026e35e2d6a0effe1161ddb0d41f.tar.gz
tdepim-7be55ffa061c026e35e2d6a0effe1161ddb0d41f.zip
Trinity Qt initial conversion
git-svn-id: svn://anonsvn.kde.org/home/kde/branches/trinity/kdepim@1157655 283d02a7-25f6-0310-bc7c-ecb5cbfe19da
Diffstat (limited to 'libkdepim/spellingfilter.h')
-rw-r--r--libkdepim/spellingfilter.h30
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();
};