diff options
author | Thomas Hartmann <thomas.hartmann@qt.io> | 2017-05-04 13:23:03 +0200 |
---|---|---|
committer | Thomas Hartmann <thomas.hartmann@qt.io> | 2017-05-04 12:34:32 +0000 |
commit | cf3454d7fdefc67dc51d75748e595faf660631fb (patch) | |
tree | 961569131916d75079cedf101803349aa36a6d7d /share/qtcreator/qml/qmlpuppet/qml2puppet/instances/dummycontextobject.h | |
parent | face7b13cd08c73dc3f300acf15bc7cb1adedaab (diff) |
QmlDesigner: Add flag to check for designer
The property runningInDesigner can be checked to find out
if a component is running in the designer.
Change-Id: Ibf35daba4bb30c7d919b1ff149c92b348d7e8059
Reviewed-by: Tim Jenssen <tim.jenssen@qt.io>
Reviewed-by: Eike Ziller <eike.ziller@qt.io>
Diffstat (limited to 'share/qtcreator/qml/qmlpuppet/qml2puppet/instances/dummycontextobject.h')
-rw-r--r-- | share/qtcreator/qml/qmlpuppet/qml2puppet/instances/dummycontextobject.h | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/share/qtcreator/qml/qmlpuppet/qml2puppet/instances/dummycontextobject.h b/share/qtcreator/qml/qmlpuppet/qml2puppet/instances/dummycontextobject.h index 73320dfcf6..a5257a2086 100644 --- a/share/qtcreator/qml/qmlpuppet/qml2puppet/instances/dummycontextobject.h +++ b/share/qtcreator/qml/qmlpuppet/qml2puppet/instances/dummycontextobject.h @@ -35,12 +35,14 @@ class DummyContextObject : public QObject { Q_OBJECT Q_PROPERTY(QObject * parent READ parentDummy WRITE setParentDummy NOTIFY parentDummyChanged DESIGNABLE false FINAL) + Q_PROPERTY(bool runningInDesigner READ runningInDesigner FINAL) public: explicit DummyContextObject(QObject *parent = 0); QObject *parentDummy() const; void setParentDummy(QObject *parentDummy); + bool runningInDesigner() const; signals: void parentDummyChanged(); |