Commit 119316a1 authored by Thomas Hartmann's avatar Thomas Hartmann

QmlDesigner: fix regression

We want to use the lower cases name instead of always image as an id.

Change-Id: I7b266c3f7658918236baf0b7805552852cc3a854
Reviewed-by: default avatarMarco Bubke <marco.bubke@digia.com>
parent 2781fd63
......@@ -153,7 +153,7 @@ QmlItemNode QmlItemNode::createQmlItemNode(AbstractView *view, const ItemLibrary
if (!newQmlItemNode.isValid())
return newQmlItemNode;
newQmlItemNode.setId(view->generateNewId("image"));
newQmlItemNode.setId(view->generateNewId(itemLibraryEntry.name().toLower()));
if (!view->currentState().isBaseState()) {
newQmlItemNode.modelNode().variantProperty("opacity").setValue(0);
......
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