diff options
author | Michele Calgaro <michele.calgaro@yahoo.it> | 2019-06-01 15:56:13 +0900 |
---|---|---|
committer | Michele Calgaro <michele.calgaro@yahoo.it> | 2019-06-01 15:56:13 +0900 |
commit | b1e66b339befa7bdf222f7bb80a431236a3ff689 (patch) | |
tree | 3ae72987233dbeddeb7fe370ee36dbe36077663c /lib/widgets/propeditor/pcombobox.cpp | |
parent | 5fcb1d91b4f52ab609864968a7320eb276f6c068 (diff) | |
download | tdevelop-b1e66b339befa7bdf222f7bb80a431236a3ff689.tar.gz tdevelop-b1e66b339befa7bdf222f7bb80a431236a3ff689.zip |
Adjusted to use new TQStringVariantMap type.
Signed-off-by: Michele Calgaro <michele.calgaro@yahoo.it>
Diffstat (limited to 'lib/widgets/propeditor/pcombobox.cpp')
-rw-r--r-- | lib/widgets/propeditor/pcombobox.cpp | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/lib/widgets/propeditor/pcombobox.cpp b/lib/widgets/propeditor/pcombobox.cpp index 7f0d242e..a0749744 100644 --- a/lib/widgets/propeditor/pcombobox.cpp +++ b/lib/widgets/propeditor/pcombobox.cpp @@ -24,13 +24,13 @@ namespace PropertyLib{ -PComboBox::PComboBox(MultiProperty *property, const TQMap<TQString, TQVariant> &list, TQWidget *parent, const char *name) +PComboBox::PComboBox(MultiProperty *property, const TQStringVariantMap &list, TQWidget *parent, const char *name) :PropertyWidget(property, parent, name), m_valueList(list) { init(false); } -PComboBox::PComboBox(MultiProperty *property, const TQMap<TQString, TQVariant> &list, bool rw, TQWidget *parent, const char *name) +PComboBox::PComboBox(MultiProperty *property, const TQStringVariantMap &list, bool rw, TQWidget *parent, const char *name) :PropertyWidget(property, parent, name), m_valueList(list) { init(rw); @@ -50,7 +50,7 @@ void PComboBox::init(bool rw) void PComboBox::fillBox() { - for (TQMap<TQString, TQVariant>::const_iterator it = m_valueList.begin(); it != m_valueList.end(); it++) + for (TQStringVariantMap::const_iterator it = m_valueList.begin(); it != m_valueList.end(); it++) { m_edit->insertItem(it.key()); } @@ -58,7 +58,7 @@ void PComboBox::fillBox() TQVariant PComboBox::value() const { - TQMap<TQString, TQVariant>::const_iterator it = m_valueList.find(m_edit->currentText()); + TQStringVariantMap::const_iterator it = m_valueList.find(m_edit->currentText()); if (it == m_valueList.end()) return TQVariant(""); return TQVariant(it.data()); @@ -83,7 +83,7 @@ void PComboBox::updateProperty(int /*val*/) TQString PComboBox::findDescription(const TQVariant &value) { - for (TQMap<TQString, TQVariant>::const_iterator it = m_valueList.begin(); it != m_valueList.end(); ++ it) + for (TQStringVariantMap::const_iterator it = m_valueList.begin(); it != m_valueList.end(); ++ it) { if (it.data() == value) return it.key(); @@ -91,7 +91,7 @@ TQString PComboBox::findDescription(const TQVariant &value) return ""; } -void PComboBox::setValueList(const TQMap<TQString, TQVariant> &valueList) +void PComboBox::setValueList(const TQStringVariantMap &valueList) { m_valueList = valueList; m_edit->clear(); |