diff options
author | tpearson <tpearson@283d02a7-25f6-0310-bc7c-ecb5cbfe19da> | 2011-06-25 05:28:35 +0000 |
---|---|---|
committer | tpearson <tpearson@283d02a7-25f6-0310-bc7c-ecb5cbfe19da> | 2011-06-25 05:28:35 +0000 |
commit | f008adb5a77e094eaf6abf3fc0f36958e66896a5 (patch) | |
tree | 8e9244c4d4957c36be81e15b566b4aa5ea26c982 /tools/spell/main.cc | |
parent | 1210f27b660efb7b37ff43ec68763e85a403471f (diff) | |
download | koffice-f008adb5a77e094eaf6abf3fc0f36958e66896a5.tar.gz koffice-f008adb5a77e094eaf6abf3fc0f36958e66896a5.zip |
TQt4 port koffice
This should enable compilation under both Qt3 and Qt4; fixes for any missed components will be forthcoming
git-svn-id: svn://anonsvn.kde.org/home/kde/branches/trinity/applications/koffice@1238284 283d02a7-25f6-0310-bc7c-ecb5cbfe19da
Diffstat (limited to 'tools/spell/main.cc')
-rw-r--r-- | tools/spell/main.cc | 22 |
1 files changed, 11 insertions, 11 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; |