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/ui/highlighter.cpp | |
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/ui/highlighter.cpp')
-rw-r--r-- | kspell2/ui/highlighter.cpp | 24 |
1 files changed, 12 insertions, 12 deletions
diff --git a/kspell2/ui/highlighter.cpp b/kspell2/ui/highlighter.cpp index 0ecbb9802..2d185462d 100644 --- a/kspell2/ui/highlighter.cpp +++ b/kspell2/ui/highlighter.cpp @@ -27,10 +27,10 @@ #include <kconfig.h> #include <kdebug.h> -#include <qtextedit.h> -#include <qtimer.h> -#include <qcolor.h> -#include <qdict.h> +#include <tqtextedit.h> +#include <tqtimer.h> +#include <tqcolor.h> +#include <tqdict.h> namespace KSpell2 { @@ -40,13 +40,13 @@ public: Filter *filter; Broker::Ptr broker; Dictionary *dict; - QDict<Dictionary> dictCache; + TQDict<Dictionary> dictCache; }; -Highlighter::Highlighter( QTextEdit *textEdit, - const QString& configFile, +Highlighter::Highlighter( TQTextEdit *textEdit, + const TQString& configFile, Filter *filter) - : QSyntaxHighlighter( textEdit ) + : TQSyntaxHighlighter( textEdit ) { d = new Private; d->filter = filter; @@ -67,7 +67,7 @@ Highlighter::~Highlighter() delete d; d = 0; } -int Highlighter::highlightParagraph( const QString& text, +int Highlighter::highlightParagraph( const TQString& text, int endStateOfLastPara ) { Q_UNUSED( endStateOfLastPara ); @@ -87,7 +87,7 @@ int Highlighter::highlightParagraph( const QString& text, w = d->filter->nextWord(); } } - //QTimer::singleShot( 0, this, SLOT(checkWords()) ); + //TQTimer::singleShot( 0, this, TQT_SLOT(checkWords()) ); return 0; } @@ -103,12 +103,12 @@ void Highlighter::setCurrentFilter( Filter *filter ) d->filter->setSettings( d->broker->settings() ); } -QString Highlighter::currentLanguage() const +TQString Highlighter::currentLanguage() const { return d->dict->language(); } -void Highlighter::setCurrentLanguage( const QString& lang ) +void Highlighter::setCurrentLanguage( const TQString& lang ) { if ( !d->dictCache.find( lang ) ) { Dictionary *dict = d->broker->dictionary( lang ); |