summaryrefslogtreecommitdiffstats
path: root/kspell2/plugins/aspell
diff options
context:
space:
mode:
Diffstat (limited to 'kspell2/plugins/aspell')
-rw-r--r--kspell2/plugins/aspell/kspell_aspellclient.cpp8
-rw-r--r--kspell2/plugins/aspell/kspell_aspellclient.h10
-rw-r--r--kspell2/plugins/aspell/kspell_aspelldict.cpp24
-rw-r--r--kspell2/plugins/aspell/kspell_aspelldict.h18
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;