Skip to content
Snippets Groups Projects
Commit 9c50cb73 authored by Thomas Hartmann's avatar Thomas Hartmann Committed by con
Browse files

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
No related branches found
No related tags found
No related merge requests found
...@@ -144,7 +144,7 @@ Internal::ObjectNodeInstance::Pointer NodeInstance::createInstance(const NodeMet ...@@ -144,7 +144,7 @@ Internal::ObjectNodeInstance::Pointer NodeInstance::createInstance(const NodeMet
else if (metaInfo.isSubclassOf("Qt/QDeclarativeView", 4, 7)) else if (metaInfo.isSubclassOf("Qt/QDeclarativeView", 4, 7))
instance = Internal::QDeclarativeViewNodeInstance::create(metaInfo, context, objectToBeWrapped); instance = Internal::QDeclarativeViewNodeInstance::create(metaInfo, context, objectToBeWrapped);
else if (metaInfo.isSubclassOf("Qt/QGraphicsWidget", 4, 7)) 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)) else if (metaInfo.isSubclassOf("QDeclarativeBasePositioner", 4, 7))
instance = Internal::PositionerNodeInstance::create(metaInfo, context, objectToBeWrapped); instance = Internal::PositionerNodeInstance::create(metaInfo, context, objectToBeWrapped);
else if (metaInfo.isSubclassOf("Qt/Item", 4, 7)) else if (metaInfo.isSubclassOf("Qt/Item", 4, 7))
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment