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 <thomas.hartmann@qt.io>
This commit is contained in:
Thomas Hartmann
2019-03-19 17:53:26 +01:00
parent e91edfe34d
commit 9e3b6d77e1

View File

@@ -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<QmlTimeline> 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);
}
}