diff options
author | tpearson <tpearson@283d02a7-25f6-0310-bc7c-ecb5cbfe19da> | 2011-07-02 06:40:27 +0000 |
---|---|---|
committer | tpearson <tpearson@283d02a7-25f6-0310-bc7c-ecb5cbfe19da> | 2011-07-02 06:40:27 +0000 |
commit | 2595a15ebeb6fc46b7cb241d01ec0c2460ec2111 (patch) | |
tree | 18a8f0f4ac5a86dacfa74c3537551ec39bc85e75 /src/fetch/configwidget.cpp | |
parent | 1d90725a4001fab9d3922b2cbcceeee5e2d1686f (diff) | |
download | tellico-2595a15ebeb6fc46b7cb241d01ec0c2460ec2111.tar.gz tellico-2595a15ebeb6fc46b7cb241d01ec0c2460ec2111.zip |
TQt4 port tellico
This enables compilation under both Qt3 and Qt4
git-svn-id: svn://anonsvn.kde.org/home/kde/branches/trinity/applications/tellico@1239054 283d02a7-25f6-0310-bc7c-ecb5cbfe19da
Diffstat (limited to 'src/fetch/configwidget.cpp')
-rw-r--r-- | src/fetch/configwidget.cpp | 30 |
1 files changed, 15 insertions, 15 deletions
diff --git a/src/fetch/configwidget.cpp b/src/fetch/configwidget.cpp index c7b3b59..3ceeea3 100644 --- a/src/fetch/configwidget.cpp +++ b/src/fetch/configwidget.cpp @@ -17,35 +17,35 @@ #include <klocale.h> #include <kaccelmanager.h> -#include <qvgroupbox.h> -#include <qlayout.h> +#include <tqvgroupbox.h> +#include <tqlayout.h> using Tellico::Fetch::ConfigWidget; -ConfigWidget::ConfigWidget(QWidget* parent_) : QWidget(parent_), m_modified(false), m_accepted(false) { - QHBoxLayout* boxLayout = new QHBoxLayout(this); +ConfigWidget::ConfigWidget(TQWidget* tqparent_) : TQWidget(tqparent_), m_modified(false), m_accepted(false) { + TQHBoxLayout* boxLayout = new TQHBoxLayout(this); boxLayout->setSpacing(10); - QGroupBox* vbox = new QVGroupBox(i18n("Source Options"), this); + TQGroupBox* vbox = new TQVGroupBox(i18n("Source Options"), this); boxLayout->addWidget(vbox, 10 /*stretch*/); - m_optionsWidget = new QWidget(vbox); + m_optionsWidget = new TQWidget(vbox); } -void ConfigWidget::addFieldsWidget(const StringMap& customFields_, const QStringList& fieldsToAdd_) { +void ConfigWidget::addFieldsWidget(const StringMap& customFields_, const TQStringList& fieldsToAdd_) { if(customFields_.isEmpty()) { return; } - QVGroupBox* box = new QVGroupBox(i18n("Available Fields"), this); - static_cast<QBoxLayout*>(layout())->addWidget(box); + TQVGroupBox* box = new TQVGroupBox(i18n("Available Fields"), this); + static_cast<TQBoxLayout*>(tqlayout())->addWidget(box); for(StringMap::ConstIterator it = customFields_.begin(); it != customFields_.end(); ++it) { - QCheckBox* cb = new QCheckBox(it.data(), box); + TQCheckBox* cb = new TQCheckBox(it.data(), box); m_fields.insert(it.key(), cb); - if(fieldsToAdd_.contains(it.key())) { + if(fieldsToAdd_.tqcontains(it.key())) { cb->setChecked(true); } - connect(cb, SIGNAL(clicked()), SLOT(slotSetModified())); + connect(cb, TQT_SIGNAL(clicked()), TQT_SLOT(slotSetModified())); } KAcceleratorManager::manage(this); @@ -54,13 +54,13 @@ void ConfigWidget::addFieldsWidget(const StringMap& customFields_, const QString } void ConfigWidget::saveFieldsConfig(KConfigGroup& config_) const { - QStringList fields; - for(QDictIterator<QCheckBox> it(m_fields); it.current(); ++it) { + TQStringList fields; + for(TQDictIterator<TQCheckBox> it(m_fields); it.current(); ++it) { if(it.current()->isChecked()) { fields << it.currentKey(); } } - config_.writeEntry(QString::fromLatin1("Custom Fields"), fields); + config_.writeEntry(TQString::tqfromLatin1("Custom Fields"), fields); } #include "configwidget.moc" |