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/backgroundengine.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/backgroundengine.cpp')
-rw-r--r-- | kspell2/backgroundengine.cpp | 26 |
1 files changed, 13 insertions, 13 deletions
diff --git a/kspell2/backgroundengine.cpp b/kspell2/backgroundengine.cpp index d5394dbb5..9eafe1b2e 100644 --- a/kspell2/backgroundengine.cpp +++ b/kspell2/backgroundengine.cpp @@ -26,12 +26,12 @@ #include <kdebug.h> -#include <qtimer.h> +#include <tqtimer.h> using namespace KSpell2; -BackgroundEngine::BackgroundEngine( QObject *parent ) - : QObject( parent ) +BackgroundEngine::BackgroundEngine( TQObject *parent ) + : TQObject( parent ) { m_filter = Filter::defaultFilter(); m_dict = 0; @@ -50,17 +50,17 @@ void BackgroundEngine::setBroker( const Broker::Ptr& broker ) m_filter->setSettings( m_broker->settings() ); } -void BackgroundEngine::setText( const QString& text ) +void BackgroundEngine::setText( const TQString& text ) { m_filter->setBuffer( text ); } -QString BackgroundEngine::text() const +TQString BackgroundEngine::text() const { return m_filter->buffer(); } -void BackgroundEngine::changeLanguage( const QString& lang ) +void BackgroundEngine::changeLanguage( const TQString& lang ) { delete m_dict; if ( lang.isEmpty() ) { @@ -70,7 +70,7 @@ void BackgroundEngine::changeLanguage( const QString& lang ) } } -QString BackgroundEngine::language() const +TQString BackgroundEngine::language() const { if ( m_dict ) return m_dict->language(); @@ -80,14 +80,14 @@ QString BackgroundEngine::language() const void BackgroundEngine::setFilter( Filter *filter ) { - QString oldText = m_filter->buffer(); + TQString oldText = m_filter->buffer(); m_filter = filter; m_filter->setBuffer( oldText ); } void BackgroundEngine::start() { - QTimer::singleShot( 0, this, SLOT(checkNext()) ); + TQTimer::singleShot( 0, this, TQT_SLOT(checkNext()) ); } void BackgroundEngine::stop() @@ -96,7 +96,7 @@ void BackgroundEngine::stop() void BackgroundEngine::continueChecking() { - QTimer::singleShot( 0, this, SLOT(checkNext()) ); + TQTimer::singleShot( 0, this, TQT_SLOT(checkNext()) ); } void BackgroundEngine::checkNext() @@ -117,19 +117,19 @@ void BackgroundEngine::checkNext() continueChecking(); } -bool BackgroundEngine::checkWord( const QString& word ) +bool BackgroundEngine::checkWord( const TQString& word ) { Dictionary *dict = ( m_dict ) ? m_dict : static_cast<Dictionary*>( m_defaultDict ); return dict->check( word ); } -bool BackgroundEngine::addWord( const QString& word ) +bool BackgroundEngine::addWord( const TQString& word ) { Dictionary *dict = ( m_dict ) ? m_dict : static_cast<Dictionary*>( m_defaultDict ); return dict->addToPersonal( word ); } -QStringList BackgroundEngine::suggest( const QString& word ) +TQStringList BackgroundEngine::suggest( const TQString& word ) { Dictionary *dict = ( m_dict ) ? m_dict : static_cast<Dictionary*>( m_defaultDict ); return dict->suggest( word ); |