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/kspell_aspelldict.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/plugins/aspell/kspell_aspelldict.cpp')
-rw-r--r-- | kspell2/plugins/aspell/kspell_aspelldict.cpp | 24 |
1 files changed, 12 insertions, 12 deletions
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 */ |