diff options
author | tpearson <tpearson@283d02a7-25f6-0310-bc7c-ecb5cbfe19da> | 2011-05-28 18:03:09 +0000 |
---|---|---|
committer | tpearson <tpearson@283d02a7-25f6-0310-bc7c-ecb5cbfe19da> | 2011-05-28 18:03:09 +0000 |
commit | 98d15d90b6a83e2df32d678013847e18b8a8c7e8 (patch) | |
tree | 02a588c0979fe1a40ae6216d1f831bb24de91a9f /katapult/plugins/catalogs/spellcatalog/spelling.h | |
parent | e0974f69b7603e3d8f2d936301e05535af25346e (diff) | |
download | katapult-98d15d90b6a83e2df32d678013847e18b8a8c7e8.tar.gz katapult-98d15d90b6a83e2df32d678013847e18b8a8c7e8.zip |
TQt4 port Katapult
This enables compilation under both Qt3 and Qt4
git-svn-id: svn://anonsvn.kde.org/home/kde/branches/trinity/applications/katapult@1233929 283d02a7-25f6-0310-bc7c-ecb5cbfe19da
Diffstat (limited to 'katapult/plugins/catalogs/spellcatalog/spelling.h')
-rw-r--r-- | katapult/plugins/catalogs/spellcatalog/spelling.h | 21 |
1 files changed, 11 insertions, 10 deletions
diff --git a/katapult/plugins/catalogs/spellcatalog/spelling.h b/katapult/plugins/catalogs/spellcatalog/spelling.h index ea4b846..1f8dc97 100644 --- a/katapult/plugins/catalogs/spellcatalog/spelling.h +++ b/katapult/plugins/catalogs/spellcatalog/spelling.h @@ -35,15 +35,16 @@ class SpellCatalog; class Spelling : public KatapultItem { Q_OBJECT + TQ_OBJECT public: - Spelling(SpellCatalog*, const QString&); + Spelling(SpellCatalog*, const TQString&); ~Spelling(); - virtual QPixmap icon(int) const; - virtual QString text() const; + virtual TQPixmap icon(int) const; + virtual TQString text() const; - void setText(const QString&); - QString result() const; + void setText(const TQString&); + TQString result() const; bool parseError() const; //evaluate() must be const, or ActionEvaluateSpelling::execute() can't call it. @@ -57,18 +58,18 @@ class Spelling : public KatapultItem private: SpellCatalog* const _catalog; - QString _text; - mutable QString _result; + TQString _text; + mutable TQString _result; mutable bool _parseError; KSpell* spellChecker; mutable bool misspelt; mutable bool corrected; - QString suggestedWords; + TQString suggestedWords; protected slots: void spellCheckerReady(); - void spellCheckerCorrected(const QString& originalword, const QString& newword, unsigned int pos); - void spellCheckerMisspelling(const QString& originalword, const QStringList& suggestions, unsigned int pos); + void spellCheckerCorrected(const TQString& originalword, const TQString& newword, unsigned int pos); + void spellCheckerMisspelling(const TQString& originalword, const TQStringList& suggestions, unsigned int pos); }; #endif |