summaryrefslogtreecommitdiffstats
path: root/lib/widgets/propeditor/multiproperty.cpp
diff options
context:
space:
mode:
authorMichele Calgaro <michele.calgaro@yahoo.it>2019-06-01 15:56:13 +0900
committerMichele Calgaro <michele.calgaro@yahoo.it>2019-06-01 15:56:13 +0900
commitb1e66b339befa7bdf222f7bb80a431236a3ff689 (patch)
tree3ae72987233dbeddeb7fe370ee36dbe36077663c /lib/widgets/propeditor/multiproperty.cpp
parent5fcb1d91b4f52ab609864968a7320eb276f6c068 (diff)
downloadtdevelop-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/multiproperty.cpp')
-rw-r--r--lib/widgets/propeditor/multiproperty.cpp14
1 files changed, 7 insertions, 7 deletions
diff --git a/lib/widgets/propeditor/multiproperty.cpp b/lib/widgets/propeditor/multiproperty.cpp
index eae14e98..7f8b1935 100644
--- a/lib/widgets/propeditor/multiproperty.cpp
+++ b/lib/widgets/propeditor/multiproperty.cpp
@@ -129,11 +129,11 @@ bool MultiProperty::visible() const
return v;
}
-TQMap<TQString, TQVariant> MultiProperty::valueList() const
+TQStringVariantMap MultiProperty::valueList() const
{
if (list.count() >= 1)
return list.getFirst()->valueList;
- return TQMap<TQString, TQVariant>();
+ return TQStringVariantMap();
}
void MultiProperty::setDescription(const TQString &description)
@@ -176,7 +176,7 @@ void MultiProperty::setValue(const TQVariant &value, bool emitChange)
}
}
-void MultiProperty::setValueList(const TQMap<TQString, TQVariant> &valueList)
+void MultiProperty::setValueList(const TQStringVariantMap &valueList)
{
Property *property;
for (property = list.first(); property; property = list.next())
@@ -232,8 +232,8 @@ TQVariant MultiProperty::findValueDescription() const
TQVariant val = value();
if (type() != Property::ValueFromList)
return val;
- TQMap<TQString, TQVariant> vl = valueList();
- for (TQMap<TQString, TQVariant>::const_iterator it = vl.begin(); it != vl.end(); ++ it)
+ TQStringVariantMap vl = valueList();
+ for (TQStringVariantMap::const_iterator it = vl.begin(); it != vl.end(); ++ it)
{
if (it.data() == val)
return it.key();
@@ -245,8 +245,8 @@ TQVariant MultiProperty::findValueDescription(TQVariant val) const
{
if (type() != Property::ValueFromList)
return val;
- TQMap<TQString, TQVariant> vl = valueList();
- for (TQMap<TQString, TQVariant>::const_iterator it = vl.begin(); it != vl.end(); ++ it)
+ TQStringVariantMap vl = valueList();
+ for (TQStringVariantMap::const_iterator it = vl.begin(); it != vl.end(); ++ it)
{
if (it.data() == val)
return it.key();