summaryrefslogtreecommitdiffstats
path: root/kspell2/plugins/hspell
diff options
context:
space:
mode:
authortpearson <tpearson@283d02a7-25f6-0310-bc7c-ecb5cbfe19da>2010-07-31 19:46:43 +0000
committertpearson <tpearson@283d02a7-25f6-0310-bc7c-ecb5cbfe19da>2010-07-31 19:46:43 +0000
commitffe8a83e053396df448e9413828527613ca3bd46 (patch)
treea73d4169e02df4a50f9a12cb165fcd0ab5bac7c6 /kspell2/plugins/hspell
parent682bf3bfdcbcbb1fca85e8a36ed03e062e0555d5 (diff)
downloadtdelibs-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/hspell')
-rw-r--r--kspell2/plugins/hspell/kspell_hspellclient.cpp8
-rw-r--r--kspell2/plugins/hspell/kspell_hspellclient.h10
-rw-r--r--kspell2/plugins/hspell/kspell_hspelldict.cpp26
-rw-r--r--kspell2/plugins/hspell/kspell_hspelldict.h20
4 files changed, 32 insertions, 32 deletions
diff --git a/kspell2/plugins/hspell/kspell_hspellclient.cpp b/kspell2/plugins/hspell/kspell_hspellclient.cpp
index ac0876153..716300c20 100644
--- a/kspell2/plugins/hspell/kspell_hspellclient.cpp
+++ b/kspell2/plugins/hspell/kspell_hspellclient.cpp
@@ -31,7 +31,7 @@ K_EXPORT_COMPONENT_FACTORY( kspell_hspell, HSpellClientFactory( "kspell_hspell"
using namespace KSpell2;
-HSpellClient::HSpellClient( QObject *parent, const char *name, const QStringList& /* args */ )
+HSpellClient::HSpellClient( TQObject *parent, const char *name, const TQStringList& /* args */ )
: Client( parent, name )
{
}
@@ -40,15 +40,15 @@ HSpellClient::~HSpellClient()
{
}
-Dictionary* HSpellClient::dictionary( const QString& language )
+Dictionary* HSpellClient::dictionary( const TQString& language )
{
HSpellDict *ad = new HSpellDict( language );
return ad;
}
-QStringList HSpellClient::languages() const
+TQStringList HSpellClient::languages() const
{
- QStringList langs;
+ TQStringList langs;
langs.append( "he" );
return langs;
diff --git a/kspell2/plugins/hspell/kspell_hspellclient.h b/kspell2/plugins/hspell/kspell_hspellclient.h
index 6d7a1773b..a26aca227 100644
--- a/kspell2/plugins/hspell/kspell_hspellclient.h
+++ b/kspell2/plugins/hspell/kspell_hspellclient.h
@@ -23,7 +23,7 @@
#define KSPELL_HSPELLCLIENT_H
#include "client.h"
-#include <qobject.h>
+#include <tqobject.h>
/* libhspell is a C library and it does not have #ifdef __cplusplus */
extern "C" {
@@ -39,18 +39,18 @@ class HSpellClient : public KSpell2::Client
{
Q_OBJECT
public:
- HSpellClient( QObject *parent, const char *name, const QStringList & /* args */ );
+ HSpellClient( TQObject *parent, const char *name, const TQStringList & /* args */ );
~HSpellClient();
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 "HSpell";
}
private:
diff --git a/kspell2/plugins/hspell/kspell_hspelldict.cpp b/kspell2/plugins/hspell/kspell_hspelldict.cpp
index e8944dbf7..04f055e86 100644
--- a/kspell2/plugins/hspell/kspell_hspelldict.cpp
+++ b/kspell2/plugins/hspell/kspell_hspelldict.cpp
@@ -23,18 +23,18 @@
#include "kspell_hspelldict.h"
#include <kdebug.h>
-#include <qtextcodec.h>
+#include <tqtextcodec.h>
using namespace KSpell2;
-HSpellDict::HSpellDict( const QString& lang )
+HSpellDict::HSpellDict( const TQString& lang )
: Dictionary( lang )
{
int int_error = hspell_init( &m_speller, HSPELL_OPT_DEFAULT );
if ( int_error == -1 )
kdDebug() << "HSpellDict::HSpellDict: Init failed" << endl;
/* hspell understans only iso8859-8-i */
- codec = QTextCodec::codecForName( "iso8859-8-i" );
+ codec = TQTextCodec::codecForName( "iso8859-8-i" );
}
HSpellDict::~HSpellDict()
@@ -43,11 +43,11 @@ HSpellDict::~HSpellDict()
hspell_uninit( m_speller );
}
-bool HSpellDict::check( const QString& word )
+bool HSpellDict::check( const TQString& word )
{
kdDebug() << "HSpellDict::check word = " << word <<endl;
int preflen;
- QCString wordISO = codec->fromUnicode( word );
+ TQCString wordISO = codec->fromUnicode( word );
/* returns 1 if the word is correct, 0 otherwise */
int correct = hspell_check_word ( m_speller,
wordISO,
@@ -61,9 +61,9 @@ bool HSpellDict::check( const QString& word )
return correct == 1;
}
-QStringList HSpellDict::suggest( const QString& word )
+TQStringList HSpellDict::suggest( const TQString& word )
{
- QStringList qsug;
+ TQStringList qsug;
struct corlist cl;
int n_sugg;
corlist_init( &cl );
@@ -75,8 +75,8 @@ QStringList HSpellDict::suggest( const QString& word )
return qsug;
}
-bool HSpellDict::checkAndSuggest( const QString& word,
- QStringList& suggestions )
+bool HSpellDict::checkAndSuggest( const TQString& word,
+ TQStringList& suggestions )
{
bool c = check( word );
if( c )
@@ -84,22 +84,22 @@ bool HSpellDict::checkAndSuggest( const QString& word,
return c;
}
-bool HSpellDict::storeReplacement( const QString& bad,
- const QString& good )
+bool HSpellDict::storeReplacement( const TQString& bad,
+ const TQString& good )
{
// hspell-0.9 cannot do this
kdDebug() << "HSpellDict::storeReplacement: Sorry, cannot." << endl;
return false;
}
-bool HSpellDict::addToPersonal( const QString& word )
+bool HSpellDict::addToPersonal( const TQString& word )
{
// hspell-0.9 cannot do this
kdDebug() << "HSpellDict::addToPersonal: Sorry, cannot." << endl;
return false;
}
-bool HSpellDict::addToSession( const QString& word )
+bool HSpellDict::addToSession( const TQString& word )
{
// hspell-0.9 cannot do this
kdDebug() << "HSpellDict::addToSession: Sorry, cannot." << endl;
diff --git a/kspell2/plugins/hspell/kspell_hspelldict.h b/kspell2/plugins/hspell/kspell_hspelldict.h
index a3895dc98..ff0302e4b 100644
--- a/kspell2/plugins/hspell/kspell_hspelldict.h
+++ b/kspell2/plugins/hspell/kspell_hspelldict.h
@@ -31,23 +31,23 @@ extern "C" {
class HSpellDict : public KSpell2::Dictionary
{
public:
- HSpellDict( const QString& lang );
+ HSpellDict( const TQString& lang );
~HSpellDict();
- 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:
struct dict_radix *m_speller;
- QTextCodec *codec;
+ TQTextCodec *codec;
};
#endif