QmlDesigner.NodeInstance: Add instance wrapper for anchor changes

Task-number: QTCREATORBUG-5026

Change-Id: I56116fc3f1823e41bfd8e50781d2b4e8fccbfe04
Reviewed-on: http://codereview.qt.nokia.com/1329
Reviewed-by: Qt Sanity Bot <qt_sanity_bot@ovi.com>
Reviewed-by: Marco Bubke <marco.bubke@nokia.com>
This commit is contained in:
Marco Bubke
2011-07-07 19:10:34 +02:00
parent 39e55c91e7
commit 94bc93d101
4 changed files with 230 additions and 1 deletions

View File

@@ -38,6 +38,7 @@
#include "qmlpropertychangesnodeinstance.h"
#include "behaviornodeinstance.h"
#include "qmlstatenodeinstance.h"
#include "anchorchangesnodeinstance.h"
#if QT_VERSION >= 0x050000
#include "sgitemnodeinstance.h"
@@ -185,6 +186,8 @@ Internal::ObjectNodeInstance::Pointer ServerNodeInstance::createInstance(QObject
#endif
else if (isSubclassOf(objectToBeWrapped, "QDeclarativeComponent"))
instance = Internal::ComponentNodeInstance::create(objectToBeWrapped);
else if (isSubclassOf(objectToBeWrapped, "QDeclarativeAnchorChanges"))
instance = Internal::AnchorChangesNodeInstance::create(objectToBeWrapped);
else if (isSubclassOf(objectToBeWrapped, "QDeclarativePropertyChanges"))
instance = Internal::QmlPropertyChangesNodeInstance::create(objectToBeWrapped);
else if (isSubclassOf(objectToBeWrapped, "QDeclarativeState"))