summaryrefslogtreecommitdiffstats
path: root/kipi-plugins/htmlexport/listthemeparameter.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'kipi-plugins/htmlexport/listthemeparameter.cpp')
-rw-r--r--kipi-plugins/htmlexport/listthemeparameter.cpp32
1 files changed, 16 insertions, 16 deletions
diff --git a/kipi-plugins/htmlexport/listthemeparameter.cpp b/kipi-plugins/htmlexport/listthemeparameter.cpp
index 234f427..7a49b6d 100644
--- a/kipi-plugins/htmlexport/listthemeparameter.cpp
+++ b/kipi-plugins/htmlexport/listthemeparameter.cpp
@@ -21,8 +21,8 @@ Foundation, Inc., 51 Franklin Street, Fifth Floor, Cambridge, MA 02110-1301, USA
// Self
#include "listthemeparameter.h"
-// Qt
-#include <qcombobox.h>
+// TQt
+#include <tqcombobox.h>
// KDE
#include <kconfigbase.h>
@@ -33,8 +33,8 @@ static const char* ITEM_VALUE_KEY = "Value_";
static const char* ITEM_CAPTION_KEY = "Caption_";
struct ListThemeParameter::Private {
- QStringList mOrderedValueList;
- QMap<QString, QString> mContentMap;
+ TQStringList mOrderedValueList;
+ TQMap<TQString, TQString> mContentMap;
};
ListThemeParameter::ListThemeParameter() {
@@ -45,33 +45,33 @@ ListThemeParameter::~ListThemeParameter() {
delete d;
}
-void ListThemeParameter::init(const QCString& internalName, const KConfigBase* configFile) {
+void ListThemeParameter::init(const TQCString& internalName, const KConfigBase* configFile) {
AbstractThemeParameter::init(internalName, configFile);
for (int pos=0;; ++pos) {
- QString valueKey = QString("%1%2").arg(ITEM_VALUE_KEY).arg(pos);
- QString captionKey = QString("%1%2").arg(ITEM_CAPTION_KEY).arg(pos);
+ TQString valueKey = TQString("%1%2").tqarg(ITEM_VALUE_KEY).tqarg(pos);
+ TQString captionKey = TQString("%1%2").tqarg(ITEM_CAPTION_KEY).tqarg(pos);
if (!configFile->hasKey(valueKey) || !configFile->hasKey(captionKey)) {
break;
}
- QString value = configFile->readEntry(valueKey);
- QString caption = configFile->readEntry(captionKey);
+ TQString value = configFile->readEntry(valueKey);
+ TQString caption = configFile->readEntry(captionKey);
d->mOrderedValueList << value;
d->mContentMap[value] = caption;
}
}
-QWidget* ListThemeParameter::createWidget(QWidget* parent, const QString& widgetDefaultValue) const {
- QComboBox* comboBox = new QComboBox(parent);
+TQWidget* ListThemeParameter::createWidget(TQWidget* tqparent, const TQString& widgetDefaultValue) const {
+ TQComboBox* comboBox = new TQComboBox(tqparent);
- QStringList::ConstIterator
+ TQStringList::ConstIterator
it = d->mOrderedValueList.begin(),
end = d->mOrderedValueList.end();
for (;it!=end; ++it) {
- QString value = *it;
- QString caption = d->mContentMap[value];
+ TQString value = *it;
+ TQString caption = d->mContentMap[value];
comboBox->insertItem(caption);
if (value == widgetDefaultValue) {
comboBox->setCurrentItem(comboBox->count() - 1);
@@ -81,9 +81,9 @@ QWidget* ListThemeParameter::createWidget(QWidget* parent, const QString& widget
return comboBox;
}
-QString ListThemeParameter::valueFromWidget(QWidget* widget) const {
+TQString ListThemeParameter::valueFromWidget(TQWidget* widget) const {
Q_ASSERT(widget);
- QComboBox* comboBox = static_cast<QComboBox*>(widget);
+ TQComboBox* comboBox = static_cast<TQComboBox*>(widget);
return d->mOrderedValueList[comboBox->currentItem()];
}