From b1e66b339befa7bdf222f7bb80a431236a3ff689 Mon Sep 17 00:00:00 2001 From: Michele Calgaro Date: Sat, 1 Jun 2019 15:56:13 +0900 Subject: Adjusted to use new TQStringVariantMap type. Signed-off-by: Michele Calgaro --- lib/widgets/propeditor/multiproperty.cpp | 14 +++++++------- 1 file changed, 7 insertions(+), 7 deletions(-) (limited to 'lib/widgets/propeditor/multiproperty.cpp') 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 MultiProperty::valueList() const +TQStringVariantMap MultiProperty::valueList() const { if (list.count() >= 1) return list.getFirst()->valueList; - return TQMap(); + 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 &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 vl = valueList(); - for (TQMap::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 vl = valueList(); - for (TQMap::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(); -- cgit v1.2.3