summaryrefslogtreecommitdiffstats
path: root/lib/widgets/propeditor/pcombobox.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'lib/widgets/propeditor/pcombobox.cpp')
-rw-r--r--lib/widgets/propeditor/pcombobox.cpp12
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();