summaryrefslogtreecommitdiffstats
path: root/src/fetch/configwidget.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/fetch/configwidget.cpp')
-rw-r--r--src/fetch/configwidget.cpp30
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"