forked from qt-creator/qt-creator
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:
@@ -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);
|
||||
}
|
||||
}
|
||||
|
Reference in New Issue
Block a user