Commit 9c50cb73 authored by Thomas Hartmann's avatar Thomas Hartmann Committed by con

QmlDesigner: crash fix

No direct support for Qt/QGraphicsWidget.
Qt 4.7.1 might hold a dangling pointer for QGraphicsWidgets
acnhor property.
We can support it again in the future.

Reviewed-by: Marco Bubke
Task-number: QTCREATORBUG-3326
parent 7ac46aad
......@@ -144,7 +144,7 @@ Internal::ObjectNodeInstance::Pointer NodeInstance::createInstance(const NodeMet
else if (metaInfo.isSubclassOf("Qt/QDeclarativeView", 4, 7))
instance = Internal::QDeclarativeViewNodeInstance::create(metaInfo, context, objectToBeWrapped);
else if (metaInfo.isSubclassOf("Qt/QGraphicsWidget", 4, 7))
instance = Internal::GraphicsWidgetNodeInstance::create(metaInfo, context, objectToBeWrapped);
instance = Internal::DummyNodeInstance::create();
else if (metaInfo.isSubclassOf("QDeclarativeBasePositioner", 4, 7))
instance = Internal::PositionerNodeInstance::create(metaInfo, context, objectToBeWrapped);
else if (metaInfo.isSubclassOf("Qt/Item", 4, 7))
......
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