From 9e3b6d77e1bbd396e0527afe85fa9b52cc4609a4 Mon Sep 17 00:00:00 2001 From: Thomas Hartmann Date: Tue, 19 Mar 2019 17:53:26 +0100 Subject: [PATCH] QmlDesigner.Timeline: Add internal flag to aux property The node is removed anyway, but aux properties that are not suppossed to be persistent should have this flag. Change-Id: I67fcfdeab21c66f4121fb8a03acc17538bbc7b89 Reviewed-by: Thomas Hartmann --- .../qmldesignerextension/timelineeditor/timelineview.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/plugins/qmldesigner/qmldesignerextension/timelineeditor/timelineview.cpp b/src/plugins/qmldesigner/qmldesignerextension/timelineeditor/timelineview.cpp index faf18972ebd..e063f1fced2 100644 --- a/src/plugins/qmldesigner/qmldesignerextension/timelineeditor/timelineview.cpp +++ b/src/plugins/qmldesigner/qmldesignerextension/timelineeditor/timelineview.cpp @@ -87,7 +87,7 @@ void TimelineView::nodeAboutToBeRemoved(const ModelNode &removedNode) toolBar->removeTimeline(QmlTimeline(removedNode)); QString currentId = toolBar->currentTimelineId(); - removedNode.setAuxiliaryData("removed", true); + removedNode.setAuxiliaryData("removed@Internal", true); if (currentId.isEmpty()) m_timelineWidget->graphicsScene()->clearTimeline(); @@ -399,7 +399,7 @@ QList TimelineView::getTimelines() const return timelines; for (const ModelNode &modelNode : allModelNodes()) { - if (QmlTimeline::isValidQmlTimeline(modelNode) && !modelNode.hasAuxiliaryData("removed")) { + if (QmlTimeline::isValidQmlTimeline(modelNode) && !modelNode.hasAuxiliaryData("removed@Internal")) { timelines.append(modelNode); } }