Commit ed842542 authored by Marco Bubke's avatar Marco Bubke

QmlDesigner.NodeInstances: Fix crash for dot properties

Change-Id: I5fcecd6fb1e50220053b2769e549f62203f33a06
Reviewed-on: http://codereview.qt.nokia.com/4075Reviewed-by: default avatarQt Sanity Bot <qt_sanity_bot@ovi.com>
Reviewed-by: default avatarThomas Hartmann <Thomas.Hartmann@nokia.com>
parent 485e4dd7
......@@ -573,7 +573,7 @@ QVariant ObjectNodeInstance::property(const QString &name) const
QDeclarativeProperty property(object(), name, context());
if (property.property().isEnumType()) {
QVariant value = object()->property(name.toLatin1());
QVariant value = property.read();
return property.property().enumerator().valueToKey(value.toInt());
}
......
......@@ -204,8 +204,6 @@ QImage SGItemNodeInstance::renderImage() const
QImage renderImage = designerSupport()->renderImageForItem(sgItem(), boundingRect, boundingRect.size().toSize());
qDebug() << __FUNCTION__ << renderImage.size();
renderImage = renderImage.convertToFormat(QImage::Format_ARGB32_Premultiplied);
return renderImage;
......@@ -319,8 +317,6 @@ QRectF SGItemNodeInstance::boundingRect() const
void SGItemNodeInstance::setPropertyVariant(const QString &name, const QVariant &value)
{
if (name == "width" || name == "height")
qDebug() << __FUNCTION__ << name << value;
if (name == "state")
return; // states are only set by us
......
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