summaryrefslogtreecommitdiffstats
path: root/kspell2/ui/configwidget.cpp
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/ui/configwidget.cpp
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/ui/configwidget.cpp')
-rw-r--r--kspell2/ui/configwidget.cpp22
1 files changed, 11 insertions, 11 deletions
diff --git a/kspell2/ui/configwidget.cpp b/kspell2/ui/configwidget.cpp
index 09811e56a..6d98955ae 100644
--- a/kspell2/ui/configwidget.cpp
+++ b/kspell2/ui/configwidget.cpp
@@ -28,8 +28,8 @@
#include <kcombobox.h>
#include <klocale.h>
-#include <qcheckbox.h>
-#include <qlayout.h>
+#include <tqcheckbox.h>
+#include <tqlayout.h>
using namespace KSpell2;
@@ -40,8 +40,8 @@ public:
KSpell2ConfigUI *ui;
};
-ConfigWidget::ConfigWidget( Broker *broker, QWidget *parent, const char *name )
- : QWidget( parent, name )
+ConfigWidget::ConfigWidget( Broker *broker, TQWidget *parent, const char *name )
+ : TQWidget( parent, name )
{
init( broker );
}
@@ -56,22 +56,22 @@ void ConfigWidget::init( Broker *broker )
d = new Private;
d->broker = broker;
- QVBoxLayout *layout = new QVBoxLayout( this, 0, 0, "KSpell2ConfigUILayout");
+ TQVBoxLayout *layout = new TQVBoxLayout( this, 0, 0, "KSpell2ConfigUILayout");
d->ui = new KSpell2ConfigUI( this );
- QStringList langs = d->broker->languages();
- //QStringList clients = d->broker->clients();
+ TQStringList langs = d->broker->languages();
+ //TQStringList clients = d->broker->clients();
d->ui->m_langCombo->insertStringList( langs );
setCorrectLanguage( langs );
//d->ui->m_clientCombo->insertStringList( clients );
d->ui->m_skipUpperCB->setChecked( !d->broker->settings()->checkUppercase() );
d->ui->m_skipRunTogetherCB->setChecked( d->broker->settings()->skipRunTogether() );
- QStringList ignoreList = d->broker->settings()->currentIgnoreList();
+ TQStringList ignoreList = d->broker->settings()->currentIgnoreList();
ignoreList.sort();
d->ui->m_ignoreListBox->insertStringList( ignoreList );
d->ui->m_bgSpellCB->setChecked( d->broker->settings()->backgroundCheckerEnabled() );
d->ui->m_bgSpellCB->hide();//hidden by default
- connect( d->ui->m_ignoreListBox, SIGNAL(changed()), SLOT(slotChanged()) );
+ connect( d->ui->m_ignoreListBox, TQT_SIGNAL(changed()), TQT_SLOT(slotChanged()) );
layout->addWidget( d->ui );
}
@@ -100,10 +100,10 @@ void ConfigWidget::slotChanged()
d->ui->m_ignoreListBox->items() );
}
-void ConfigWidget::setCorrectLanguage( const QStringList& langs)
+void ConfigWidget::setCorrectLanguage( const TQStringList& langs)
{
int idx = 0;
- for ( QStringList::const_iterator itr = langs.begin();
+ for ( TQStringList::const_iterator itr = langs.begin();
itr != langs.end(); ++itr, ++idx ) {
if ( *itr == d->broker->settings()->defaultLanguage() )
d->ui->m_langCombo->setCurrentItem( idx );