summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorThomas Hartmann <Thomas.Hartmann@theqtcompany.com>2015-01-29 14:27:26 +0100
committerThomas Hartmann <Thomas.Hartmann@digia.com>2015-01-30 10:05:20 +0000
commit8e16697c665a2cffa3a65ab14882a299d6486da9 (patch)
tree2b3245fb9f8548ab5eda1c0a02c7cbb4b8cf57a2
parent98f2a74f900bea4d4801469cd8d99315252462b3 (diff)
downloadqt-creator-8e16697c665a2cffa3a65ab14882a299d6486da9.tar.gz
QmlDesigner.PropertyEditor: Adding QmlAnchorBindingProxy::isInLayout
Change-Id: Iee07466c5bbd3acf1c265683f4960d20e58e285c Reviewed-by: Tim Jenssen <tim.jenssen@theqtcompany.com>
-rw-r--r--src/plugins/qmldesigner/components/propertyeditor/qmlanchorbindingproxy.cpp5
-rw-r--r--src/plugins/qmldesigner/components/propertyeditor/qmlanchorbindingproxy.h3
2 files changed, 8 insertions, 0 deletions
diff --git a/src/plugins/qmldesigner/components/propertyeditor/qmlanchorbindingproxy.cpp b/src/plugins/qmldesigner/components/propertyeditor/qmlanchorbindingproxy.cpp
index 4052d1d4c8..f7916a5112 100644
--- a/src/plugins/qmldesigner/components/propertyeditor/qmlanchorbindingproxy.cpp
+++ b/src/plugins/qmldesigner/components/propertyeditor/qmlanchorbindingproxy.cpp
@@ -300,6 +300,11 @@ bool QmlAnchorBindingProxy::hasParent()
return m_qmlItemNode.isValid() && m_qmlItemNode.hasNodeParent();
}
+bool QmlAnchorBindingProxy::isInLayout() const
+{
+ return false;
+}
+
bool QmlAnchorBindingProxy::isFilled()
{
return m_qmlItemNode.isValid()
diff --git a/src/plugins/qmldesigner/components/propertyeditor/qmlanchorbindingproxy.h b/src/plugins/qmldesigner/components/propertyeditor/qmlanchorbindingproxy.h
index 302eb3f232..6a67f52b34 100644
--- a/src/plugins/qmldesigner/components/propertyeditor/qmlanchorbindingproxy.h
+++ b/src/plugins/qmldesigner/components/propertyeditor/qmlanchorbindingproxy.h
@@ -52,6 +52,7 @@ class QmlAnchorBindingProxy : public QObject
Q_PROPERTY(bool leftAnchored READ leftAnchored WRITE setLeftAnchor NOTIFY leftAnchorChanged)
Q_PROPERTY(bool rightAnchored READ rightAnchored WRITE setRightAnchor NOTIFY rightAnchorChanged)
Q_PROPERTY(bool hasParent READ hasParent NOTIFY parentChanged)
+ Q_PROPERTY(bool isInLayout READ isInLayout NOTIFY parentChanged)
Q_PROPERTY(QString topTarget READ topTarget WRITE setTopTarget NOTIFY topTargetChanged)
Q_PROPERTY(QString bottomTarget READ bottomTarget WRITE setBottomTarget NOTIFY bottomTargetChanged)
@@ -103,6 +104,8 @@ public:
bool hasParent();
bool isFilled();
+ bool isInLayout() const;
+
void removeTopAnchor();
void removeBottomAnchor();
void removeLeftAnchor();