diff options
Diffstat (limited to 'lib/kotext/KoLanguageTab.cpp')
-rw-r--r-- | lib/kotext/KoLanguageTab.cpp | 24 |
1 files changed, 12 insertions, 12 deletions
diff --git a/lib/kotext/KoLanguageTab.cpp b/lib/kotext/KoLanguageTab.cpp index 1dff08d4..47fb045e 100644 --- a/lib/kotext/KoLanguageTab.cpp +++ b/lib/kotext/KoLanguageTab.cpp @@ -23,43 +23,43 @@ #include <kcombobox.h> #include <kiconloader.h> -#include <qstringlist.h> +#include <tqstringlist.h> #include "KoLanguageTab.moc" -KoLanguageTab::KoLanguageTab( KSpell2::Broker::Ptr broker, QWidget* parent, const char* name, WFlags fl ) - : KoLanguageTabBase( parent, name, fl ) +KoLanguageTab::KoLanguageTab( KSpell2::Broker::Ptr broker, TQWidget* tqparent, const char* name, WFlags fl ) + : KoLanguageTabBase( tqparent, name, fl ) { - const QStringList langNames = KoGlobal::listOfLanguages(); - const QStringList langTags = KoGlobal::listTagOfLanguages(); - QStringList spellCheckLanguages; + const TQStringList langNames = KoGlobal::listOfLanguages(); + const TQStringList langTags = KoGlobal::listTagOfLanguages(); + TQStringList spellCheckLanguages; if ( broker ) spellCheckLanguages = broker->languages(); - QStringList::ConstIterator itName = langNames.begin(); - QStringList::ConstIterator itTag = langTags.begin(); + TQStringList::ConstIterator itName = langNames.begin(); + TQStringList::ConstIterator itTag = langTags.begin(); for ( ; itName != langNames.end() && itTag != langTags.end(); ++itName, ++itTag ) { - if ( spellCheckLanguages.find( *itTag ) != spellCheckLanguages.end() ) + if ( spellCheckLanguages.tqfind( *itTag ) != spellCheckLanguages.end() ) languageKComboBox->insertItem( SmallIcon( "spellcheck" ), *itName ); else languageKComboBox->insertItem( *itName ); } - connect( languageKComboBox, SIGNAL( activated( int ) ), this, SIGNAL( languageChanged() ) ); + connect( languageKComboBox, TQT_SIGNAL( activated( int ) ), this, TQT_SIGNAL( languageChanged() ) ); } KoLanguageTab::~KoLanguageTab() { } -QString KoLanguageTab::getLanguage() const +TQString KoLanguageTab::getLanguage() const { return KoGlobal::tagOfLanguage( languageKComboBox->currentText() ); } -void KoLanguageTab::setLanguage( const QString &item ) +void KoLanguageTab::setLanguage( const TQString &item ) { languageKComboBox->setCurrentText( KoGlobal::languageFromTag( item ) ); } |