Commit bb525e5f authored by BogDan Vatra's avatar BogDan Vatra
Browse files

Access itemModelNode.

itemNode property was changed to return the itemNode id, which is not enough for
custom QML Designer plugins to access model data.

Change-Id: I8111ba27ff4b32aca5c954b3739d15495a60ec58
Reviewed-by: default avatarThomas Hartmann <>
parent de2c7904
......@@ -71,6 +71,7 @@ class QmlAnchorBindingProxy : public QObject
Q_PROPERTY(bool horizontalCentered READ horizontalCentered WRITE setHorizontalCentered NOTIFY centeredHChanged)
Q_PROPERTY(bool verticalCentered READ verticalCentered WRITE setVerticalCentered NOTIFY centeredVChanged)
Q_PROPERTY(QVariant itemNode READ itemNode NOTIFY itemNodeChanged)
Q_PROPERTY(QVariant itemModelNode READ itemModelNode NOTIFY itemNodeChanged)
Q_PROPERTY(QStringList possibleTargetItems READ possibleTargetItems NOTIFY itemNodeChanged)
......@@ -110,6 +111,7 @@ public:
bool horizontalCentered();
bool verticalCentered();
QVariant itemNode() const { return QVariant::fromValue(m_qmlItemNode.modelNode().id()); }
QVariant itemModelNode() const { return QVariant::fromValue(m_qmlItemNode.modelNode()); }
QString topTarget() const;
QString bottomTarget() const;
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