Commit 25d3a9e3 authored by Thomas Hartmann's avatar Thomas Hartmann

QmlDesigner.PropertyEditor: Adding property to QmlModelNodeProxy

Change-Id: I8624cc5c5fc016a56f3dea18d0cca1620c6c4b86
Reviewed-by: default avatarThomas Hartmann <Thomas.Hartmann@digia.com>
parent fb48205e
......@@ -42,7 +42,7 @@ void QmlModelNodeProxy::setup(const QmlItemNode &itemNode)
{
m_qmlItemNode = itemNode;
emit selectionChanged();
emit modelNodeChanged();
}
void QmlModelNodeProxy::registerDeclarativeType()
......@@ -60,4 +60,9 @@ QmlItemNode QmlModelNodeProxy::qmlItemNode() const
return m_qmlItemNode;
}
ModelNode QmlModelNodeProxy::modelNode() const
{
return m_qmlItemNode.modelNode();
}
}
......@@ -40,6 +40,8 @@ class QmlModelNodeProxy : public QObject
{
Q_OBJECT
Q_PROPERTY(QmlDesigner::ModelNode modelNode READ modelNode NOTIFY modelNodeChanged)
public:
explicit QmlModelNodeProxy(QObject *parent = 0);
......@@ -51,8 +53,10 @@ public:
QmlItemNode qmlItemNode() const;
ModelNode modelNode() const;
signals:
void selectionChanged();
void modelNodeChanged();
void selectionToBeChanged();
public slots:
......
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