From f84e428f58ae60981cbf991a77899a6d2ac28fba Mon Sep 17 00:00:00 2001
From: Marco Bubke <marco.bubke@nokia.com>
Date: Thu, 25 Nov 2010 12:51:00 +0100
Subject: [PATCH] QmlDesigner.NodeInsances: Use Qt class names instead of Qml
 class names

---
 .../instances/servernodeinstance.cpp             | 16 +++++++---------
 1 file changed, 7 insertions(+), 9 deletions(-)

diff --git a/src/plugins/qmldesigner/designercore/instances/servernodeinstance.cpp b/src/plugins/qmldesigner/designercore/instances/servernodeinstance.cpp
index c54ca1ac48d..ae032f8ca45 100644
--- a/src/plugins/qmldesigner/designercore/instances/servernodeinstance.cpp
+++ b/src/plugins/qmldesigner/designercore/instances/servernodeinstance.cpp
@@ -163,23 +163,21 @@ Internal::ObjectNodeInstance::Pointer ServerNodeInstance::createInstance(QObject
 
     if (objectToBeWrapped == 0)
         instance = Internal::DummyNodeInstance::create();
-    else if (isSubclassOf(objectToBeWrapped, "QtWebKit/WebView"))
-        instance = Internal::DummyNodeInstance::create();
     else if (isSubclassOf(objectToBeWrapped, "QDeclarativeBasePositioner"))
         instance = Internal::PositionerNodeInstance::create(objectToBeWrapped);
-    else if (isSubclassOf(objectToBeWrapped, "Qt/Item"))
+    else if (isSubclassOf(objectToBeWrapped, "QDeclarativeItem"))
         instance = Internal::QmlGraphicsItemNodeInstance::create(objectToBeWrapped);
-    else if (isSubclassOf(objectToBeWrapped, "Qt/Component"))
+    else if (isSubclassOf(objectToBeWrapped, "QDeclarativeComponent"))
         instance = Internal::ComponentNodeInstance::create(objectToBeWrapped);
-    else if (isSubclassOf(objectToBeWrapped, "Qt/PropertyChanges"))
+    else if (isSubclassOf(objectToBeWrapped, "QDeclarativePropertyChanges"))
         instance = Internal::QmlPropertyChangesNodeInstance::create(objectToBeWrapped);
-    else if (isSubclassOf(objectToBeWrapped, "Qt/State"))
+    else if (isSubclassOf(objectToBeWrapped, "QDeclarativeState"))
         instance = Internal::QmlStateNodeInstance::create(objectToBeWrapped);
-    else if (isSubclassOf(objectToBeWrapped, "Qt/Transition"))
+    else if (isSubclassOf(objectToBeWrapped, "QDeclarativeTransition"))
         instance = Internal::QmlTransitionNodeInstance::create(objectToBeWrapped);
-    else if (isSubclassOf(objectToBeWrapped, "Qt/Behavior"))
+    else if (isSubclassOf(objectToBeWrapped, "QDeclarativeBehavior"))
         instance = Internal::BehaviorNodeInstance::create(objectToBeWrapped);
-    else if (isSubclassOf(objectToBeWrapped, "Qt/QtObject"))
+    else if (isSubclassOf(objectToBeWrapped, "QObject"))
         instance = Internal::ObjectNodeInstance::create(objectToBeWrapped);
     else
         instance = Internal::DummyNodeInstance::create();
-- 
GitLab