diff options
author | Thomas Hartmann <thomas.hartmann@qt.io> | 2018-11-02 14:30:19 +0100 |
---|---|---|
committer | Thomas Hartmann <thomas.hartmann@qt.io> | 2018-11-02 13:56:39 +0000 |
commit | 6e7ecdb4f1ab6a088258748dba8abf74d9f194e4 (patch) | |
tree | e873bb2bed23b8a9bcd27ebc75c676fe83e07a4c /src/plugins | |
parent | fb25bd53c118490935db377e3948297ed44cf2c0 (diff) | |
download | qt-creator-6e7ecdb4f1ab6a088258748dba8abf74d9f194e4.tar.gz |
QmlDesigner: Ignore certain auxiliary data names when saving
Properties with the postfix '@internal' are not stored in the
QML file. Therefore they are not persistent.
Change-Id: I1f726c029f9db8c00bc85dc11c276c098e9a2a3a
Reviewed-by: Tim Jenssen <tim.jenssen@qt.io>
Diffstat (limited to 'src/plugins')
-rw-r--r-- | src/plugins/qmldesigner/designercore/model/rewriterview.cpp | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/src/plugins/qmldesigner/designercore/model/rewriterview.cpp b/src/plugins/qmldesigner/designercore/model/rewriterview.cpp index 5be415c3d5..d409d1b93b 100644 --- a/src/plugins/qmldesigner/designercore/model/rewriterview.cpp +++ b/src/plugins/qmldesigner/designercore/model/rewriterview.cpp @@ -493,6 +493,9 @@ QString RewriterView::auxiliaryDataAsQML() const if (key.endsWith("@NodeInstance")) continue; + if (key.endsWith("@Internal")) + continue; + const QVariant value = data.value(key.toUtf8()); QString strValue = value.toString(); if (static_cast<QMetaType::Type>(value.type()) == QMetaType::QString) |