summaryrefslogtreecommitdiffstats
path: root/lib/kotext/KoLanguageTab.cpp
diff options
context:
space:
mode:
authortpearson <tpearson@283d02a7-25f6-0310-bc7c-ecb5cbfe19da>2011-06-25 05:28:35 +0000
committertpearson <tpearson@283d02a7-25f6-0310-bc7c-ecb5cbfe19da>2011-06-25 05:28:35 +0000
commitf008adb5a77e094eaf6abf3fc0f36958e66896a5 (patch)
tree8e9244c4d4957c36be81e15b566b4aa5ea26c982 /lib/kotext/KoLanguageTab.cpp
parent1210f27b660efb7b37ff43ec68763e85a403471f (diff)
downloadkoffice-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 'lib/kotext/KoLanguageTab.cpp')
-rw-r--r--lib/kotext/KoLanguageTab.cpp24
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 ) );
}