Commit 3eeb3758 authored by Fawzi Mohamed's avatar Fawzi Mohamed
Browse files

qmldesigner: add explicit cast to enum conversion



Xcode 5 clang is picky about conversion between enums.
Adding an explicit cast.

Change-Id: I2e9b877c67f3b889a02d516704879b9b3b9d9bc0
Reviewed-by: default avatarThomas Hartmann <Thomas.Hartmann@digia.com>
parent eb694775
......@@ -127,7 +127,7 @@ QString QmlTextGenerator::toQml(const AbstractProperty &property, int indentDept
case QVariant::Color:
return QString(QLatin1String("\"%1\"")).arg(properColorName(value.value<QColor>()));
case QMetaType::Float:
case static_cast<QVariant::Type>(QMetaType::Float):
case QVariant::Double:
return doubleToString(value.toDouble());
case QVariant::Int:
......
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