diff options
Diffstat (limited to 'tools/spell')
-rw-r--r-- | tools/spell/main.cc | 22 | ||||
-rw-r--r-- | tools/spell/main.h | 7 |
2 files changed, 15 insertions, 14 deletions
diff --git a/tools/spell/main.cc b/tools/spell/main.cc index 166b8a9e..275e3ee9 100644 --- a/tools/spell/main.cc +++ b/tools/spell/main.cc @@ -45,12 +45,12 @@ K_EXPORT_COMPONENT_FACTORY( libkspelltool, KGenericFactory<SpellChecker> ) * ***************************************************/ -SpellChecker::SpellChecker( QObject* parent, const char* name, const QStringList & ) - : KDataTool( parent, name ) +SpellChecker::SpellChecker( TQObject* tqparent, const char* name, const TQStringList & ) + : KDataTool( tqparent, name ) { } -bool SpellChecker::run( const QString& command, void* data, const QString& datatype, const QString& mimetype ) +bool SpellChecker::run( const TQString& command, void* data, const TQString& datatype, const TQString& mimetype ) { if ( command != "spellcheck" ) { @@ -60,9 +60,9 @@ bool SpellChecker::run( const QString& command, void* data, const QString& datat } // Check wether we can accept the data - if ( datatype != "QString" ) + if ( datatype != TQSTRING_OBJECT_NAME_STRING ) { - kdDebug(31000) << "SpellChecker only accepts datatype QString" << endl; + kdDebug(31000) << "SpellChecker only accepts datatype TQString" << endl; return FALSE; } @@ -73,15 +73,15 @@ bool SpellChecker::run( const QString& command, void* data, const QString& datat } // Get data - QString buffer = *((QString *)data); + TQString buffer = *((TQString *)data); buffer = buffer.stripWhiteSpace(); if ( instance() ) { KConfig * config = instance()->config(); - QCString gn( "KSpell " ); + TQCString gn( "KSpell " ); gn += instance()->instanceName(); // for compat reasons, and to avoid finding the group in kdeglobals (hmm...) - QString groupName = QString::fromLatin1( gn ); + TQString groupName = TQString::tqfromLatin1( gn ); //kdDebug() << "Group: " << groupName << endl; if ( config->hasGroup( groupName ) ) { @@ -110,11 +110,11 @@ bool SpellChecker::run( const QString& command, void* data, const QString& datat #if 0 //PORT to kspell2 // Call the spell checker KOSpell::modalCheck( buffer, &kosconfig ); - *((QString*)data) = buffer; + *((TQString*)data) = buffer; #endif #if 0 //fixme // Call the spell checker - KSpell::spellStatus status=(KSpell::spellStatus)KSpell::modalCheck( buffer, &ksconfig ); + KSpell::spelltqStatus status=(KSpell::spelltqStatus)KSpell::modalCheck( buffer, &ksconfig ); if (status == KSpell::Error) { @@ -128,7 +128,7 @@ bool SpellChecker::run( const QString& command, void* data, const QString& datat else { // Set data - *((QString*)data) = buffer; + *((TQString*)data) = buffer; } #endif return TRUE; diff --git a/tools/spell/main.h b/tools/spell/main.h index b096d08a..7f0c4fe4 100644 --- a/tools/spell/main.h +++ b/tools/spell/main.h @@ -20,17 +20,18 @@ #ifndef __main_h__ #define __main_h__ -#include <qobject.h> +#include <tqobject.h> #include <kdatatool.h> #include <klibloader.h> class SpellChecker : public KDataTool { Q_OBJECT + TQ_OBJECT public: - SpellChecker( QObject* parent, const char* name, const QStringList & ); - virtual bool run( const QString& command, void* data, const QString& datatype, const QString& mimetype); + SpellChecker( TQObject* tqparent, const char* name, const TQStringList & ); + virtual bool run( const TQString& command, void* data, const TQString& datatype, const TQString& mimetype); }; #endif |