diff options
author | tpearson <tpearson@283d02a7-25f6-0310-bc7c-ecb5cbfe19da> | 2010-07-31 19:46:43 +0000 |
---|---|---|
committer | tpearson <tpearson@283d02a7-25f6-0310-bc7c-ecb5cbfe19da> | 2010-07-31 19:46:43 +0000 |
commit | ffe8a83e053396df448e9413828527613ca3bd46 (patch) | |
tree | a73d4169e02df4a50f9a12cb165fcd0ab5bac7c6 /kspell2/filter.h | |
parent | 682bf3bfdcbcbb1fca85e8a36ed03e062e0555d5 (diff) | |
download | tdelibs-ffe8a83e053396df448e9413828527613ca3bd46.tar.gz tdelibs-ffe8a83e053396df448e9413828527613ca3bd46.zip |
Trinity Qt initial conversion
git-svn-id: svn://anonsvn.kde.org/home/kde/branches/trinity/kdelibs@1157647 283d02a7-25f6-0310-bc7c-ecb5cbfe19da
Diffstat (limited to 'kspell2/filter.h')
-rw-r--r-- | kspell2/filter.h | 22 |
1 files changed, 11 insertions, 11 deletions
diff --git a/kspell2/filter.h b/kspell2/filter.h index 3c66dc869..5e4635493 100644 --- a/kspell2/filter.h +++ b/kspell2/filter.h @@ -23,7 +23,7 @@ #ifndef KSPELL_FILTER_H #define KSPELL_FILTER_H -#include <qstring.h> +#include <tqstring.h> #include <kdelibs_export.h> namespace KSpell2 @@ -42,7 +42,7 @@ namespace KSpell2 Word() : start( 0 ), end( true ) {} - Word( const QString& w, int st, bool e = false ) + Word( const TQString& w, int st, bool e = false ) : word( w ), start( st ), end( e ) {} Word( const Word& other ) @@ -50,7 +50,7 @@ namespace KSpell2 end( other.end ) {} - QString word; + TQString word; uint start; bool end; }; @@ -84,8 +84,8 @@ namespace KSpell2 bool atEnd() const; - void setBuffer( const QString& buffer ); - QString buffer() const; + void setBuffer( const TQString& buffer ); + TQString buffer() const; void restart(); @@ -95,21 +95,21 @@ namespace KSpell2 virtual void setCurrentPosition( int ); virtual int currentPosition() const; - virtual void replace( const Word& w, const QString& newWord ); + virtual void replace( const Word& w, const TQString& newWord ); /** * Should return the sentence containing the current word */ - virtual QString context() const; + virtual TQString context() const; protected: bool trySkipLinks() const; - bool ignore( const QString& word ) const; - QChar skipToLetter( uint &fromPosition ) const; + bool ignore( const TQString& word ) const; + TQChar skipToLetter( uint &fromPosition ) const; bool shouldBeSkipped( bool wordWasUppercase, bool wordWasRunTogether, - const QString& foundWord ) const; + const TQString& foundWord ) const; protected: - QString m_buffer; + TQString m_buffer; mutable uint m_currentPosition; private: |