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/plugins/aspell | |
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/plugins/aspell')
-rw-r--r-- | kspell2/plugins/aspell/kspell_aspellclient.cpp | 8 | ||||
-rw-r--r-- | kspell2/plugins/aspell/kspell_aspellclient.h | 10 | ||||
-rw-r--r-- | kspell2/plugins/aspell/kspell_aspelldict.cpp | 24 | ||||
-rw-r--r-- | kspell2/plugins/aspell/kspell_aspelldict.h | 18 |
4 files changed, 30 insertions, 30 deletions
diff --git a/kspell2/plugins/aspell/kspell_aspellclient.cpp b/kspell2/plugins/aspell/kspell_aspellclient.cpp index 94156c523..3577dd795 100644 --- a/kspell2/plugins/aspell/kspell_aspellclient.cpp +++ b/kspell2/plugins/aspell/kspell_aspellclient.cpp @@ -30,7 +30,7 @@ K_EXPORT_COMPONENT_FACTORY( kspell_aspell, ASpellClientFactory( "kspell_aspell" using namespace KSpell2; -ASpellClient::ASpellClient( QObject *parent, const char *name, const QStringList& /* args */ ) +ASpellClient::ASpellClient( TQObject *parent, const char *name, const TQStringList& /* args */ ) : Client( parent, name ) { m_config = new_aspell_config(); @@ -41,18 +41,18 @@ ASpellClient::~ASpellClient() delete_aspell_config( m_config ); } -Dictionary* ASpellClient::dictionary( const QString& language ) +Dictionary* ASpellClient::dictionary( const TQString& language ) { ASpellDict *ad = new ASpellDict( language ); return ad; } -QStringList ASpellClient::languages() const +TQStringList ASpellClient::languages() const { AspellDictInfoList *l = get_aspell_dict_info_list( m_config ); AspellDictInfoEnumeration *el = aspell_dict_info_list_elements( l ); - QStringList langs; + TQStringList langs; const AspellDictInfo *di = 0; while ( ( di = aspell_dict_info_enumeration_next( el ) ) ) { langs.append( di->name ); diff --git a/kspell2/plugins/aspell/kspell_aspellclient.h b/kspell2/plugins/aspell/kspell_aspellclient.h index 7073e80ec..f2439989c 100644 --- a/kspell2/plugins/aspell/kspell_aspellclient.h +++ b/kspell2/plugins/aspell/kspell_aspellclient.h @@ -22,7 +22,7 @@ #define KSPELL_ASPELLCLIENT_H #include "client.h" -#include <qobject.h> +#include <tqobject.h> #include "aspell.h" @@ -35,18 +35,18 @@ class ASpellClient : public KSpell2::Client { Q_OBJECT public: - ASpellClient( QObject *parent, const char *name, const QStringList & /* args */ ); + ASpellClient( TQObject *parent, const char *name, const TQStringList & /* args */ ); ~ASpellClient(); virtual int reliability() const { return 20; } - virtual Dictionary* dictionary( const QString& language ); + virtual Dictionary* dictionary( const TQString& language ); - virtual QStringList languages() const; + virtual TQStringList languages() const; - virtual QString name() const { + virtual TQString name() const { return "ASpell"; } private: diff --git a/kspell2/plugins/aspell/kspell_aspelldict.cpp b/kspell2/plugins/aspell/kspell_aspelldict.cpp index 4674c138a..6687f2106 100644 --- a/kspell2/plugins/aspell/kspell_aspelldict.cpp +++ b/kspell2/plugins/aspell/kspell_aspelldict.cpp @@ -22,11 +22,11 @@ #include <kdebug.h> -#include <qtextcodec.h> +#include <tqtextcodec.h> using namespace KSpell2; -ASpellDict::ASpellDict( const QString& lang ) +ASpellDict::ASpellDict( const TQString& lang ) : Dictionary( lang ) { m_config = new_aspell_config(); @@ -50,7 +50,7 @@ ASpellDict::~ASpellDict() delete_aspell_config( m_config ); } -bool ASpellDict::check( const QString& word ) +bool ASpellDict::check( const TQString& word ) { /* ASpell is expecting length of a string in char representation */ /* word.length() != word.utf8().length() for nonlatin strings */ @@ -58,10 +58,10 @@ bool ASpellDict::check( const QString& word ) return correct; } -QStringList ASpellDict::suggest( const QString& word ) +TQStringList ASpellDict::suggest( const TQString& word ) { /* Needed for Unicode conversion */ - QTextCodec *codec = QTextCodec::codecForName("utf8"); + TQTextCodec *codec = TQTextCodec::codecForName("utf8"); /* ASpell is expecting length of a string in char representation */ /* word.length() != word.utf8().length() for nonlatin strings */ @@ -71,7 +71,7 @@ QStringList ASpellDict::suggest( const QString& word ) AspellStringEnumeration * elements = aspell_word_list_elements( suggestions ); - QStringList qsug; + TQStringList qsug; const char * cword; while ( (cword = aspell_string_enumeration_next( elements )) ) { @@ -84,8 +84,8 @@ QStringList ASpellDict::suggest( const QString& word ) return qsug; } -bool ASpellDict::checkAndSuggest( const QString& word, - QStringList& suggestions ) +bool ASpellDict::checkAndSuggest( const TQString& word, + TQStringList& suggestions ) { bool c = check( word ); if ( c ) @@ -93,8 +93,8 @@ bool ASpellDict::checkAndSuggest( const QString& word, return c; } -bool ASpellDict::storeReplacement( const QString& bad, - const QString& good ) +bool ASpellDict::storeReplacement( const TQString& bad, + const TQString& good ) { /* ASpell is expecting length of a string in char representation */ /* word.length() != word.utf8().length() for nonlatin strings */ @@ -103,7 +103,7 @@ bool ASpellDict::storeReplacement( const QString& bad, good.utf8(), good.utf8().length() ); } -bool ASpellDict::addToPersonal( const QString& word ) +bool ASpellDict::addToPersonal( const TQString& word ) { kdDebug() << "ASpellDict::addToPersonal: word = " << word << endl; /* ASpell is expecting length of a string in char representation */ @@ -116,7 +116,7 @@ bool ASpellDict::addToPersonal( const QString& word ) return aspell_speller_save_all_word_lists( m_speller ); } -bool ASpellDict::addToSession( const QString& word ) +bool ASpellDict::addToSession( const TQString& word ) { /* ASpell is expecting length of a string in char representation */ /* word.length() != word.utf8().length() for nonlatin strings */ diff --git a/kspell2/plugins/aspell/kspell_aspelldict.h b/kspell2/plugins/aspell/kspell_aspelldict.h index 0a4f520d3..2ff51c056 100644 --- a/kspell2/plugins/aspell/kspell_aspelldict.h +++ b/kspell2/plugins/aspell/kspell_aspelldict.h @@ -28,20 +28,20 @@ class ASpellDict : public KSpell2::Dictionary { public: - ASpellDict( const QString& lang ); + ASpellDict( const TQString& lang ); ~ASpellDict(); - virtual bool check( const QString& word ); + virtual bool check( const TQString& word ); - virtual QStringList suggest( const QString& word ); + virtual TQStringList suggest( const TQString& word ); - virtual bool checkAndSuggest( const QString& word, - QStringList& suggestions ) ; + virtual bool checkAndSuggest( const TQString& word, + TQStringList& suggestions ) ; - virtual bool storeReplacement( const QString& bad, - const QString& good ); + virtual bool storeReplacement( const TQString& bad, + const TQString& good ); - virtual bool addToPersonal( const QString& word ); - virtual bool addToSession( const QString& word ); + virtual bool addToPersonal( const TQString& word ); + virtual bool addToSession( const TQString& word ); private: AspellConfig *m_config; AspellSpeller *m_speller; |