Commit 3e83e437 authored by Thomas Hartmann's avatar Thomas Hartmann
Browse files

QmlDesigner.MetaInfo: Do not convert Enumeration

This is a designer specific type that is never converted.

Change-Id: Ibfe73bdb441cbd17ec728025b9c8bf77d3df2587
Reviewed-by: default avatarThomas Hartmann <>
parent 985d2828
......@@ -31,6 +31,7 @@
#include "model.h"
#include "metainfo.h"
#include <enumeration.h>
#include <rewriterview.h>
#include <propertyparser.h>
......@@ -1358,7 +1359,8 @@ QVariant NodeMetaInfo::propertyCastedValue(const PropertyName &propertyName, con
const QVariant variant = value;
QVariant copyVariant = variant;
if (propertyIsEnumType(propertyName))
if (propertyIsEnumType(propertyName)
|| variant.canConvert<Enumeration>())
return variant;
const QString typeName = propertyTypeName(propertyName);
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