Commit 7267aa16 authored by Marco Bubke's avatar Marco Bubke

QmlDesigner.Test: Remove magic

Explicit code is more readable than some short magic. Yes, that is not
cool, but in the end more maintainable. ;-)

Change-Id: Iac2f4e2dc3c4d7aa4d9be1f1e9d7dc3231d4d375
Reviewed-by: default avatarThomas Hartmann <Thomas.Hartmann@nokia.com>
parent ae72dae1
......@@ -58,7 +58,7 @@ public:
VariantProperty& operator= (const QVariant &value);
void setDynamicTypeNameAndValue(const QString &type, const QVariant &value);
VariantProperty& operator= (const QPair<QString, QVariant> &typeValuePair);
Q_DECL_DEPRECATED VariantProperty& operator= (const QPair<QString, QVariant> &typeValuePair);
VariantProperty();
VariantProperty(const VariantProperty &property, AbstractView *view);
......
......@@ -6204,7 +6204,7 @@ void tst_TestCore::testModelDynamicProperties()
ModelNode rootModelNode = rootQmlItemNode.modelNode();
rootModelNode.variantProperty("x") = 10;
rootModelNode.variantProperty("myDouble") = qMakePair(QString("real"), QVariant(10));
rootModelNode.variantProperty("myDouble").setDynamicTypeNameAndValue("real", 10);
rootModelNode.variantProperty("myColor").setDynamicTypeNameAndValue("color", Qt::red);
QVERIFY(!rootModelNode.property("x").isDynamic());
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment