forked from qt-creator/qt-creator
Update the curve editor when creating a new keyframe group
Change-Id: I944754811854dba5defca812f2da7f5c086a10dd Reviewed-by: Thomas Hartmann <thomas.hartmann@qt.io>
This commit is contained in:
@@ -149,6 +149,11 @@ void TimelineView::nodeReparented(const ModelNode &node,
|
||||
newPropertyParent.parentModelNode())) {
|
||||
QmlTimelineKeyframeGroup frames(newPropertyParent.parentModelNode());
|
||||
m_timelineWidget->graphicsScene()->invalidateSectionForTarget(frames.target());
|
||||
|
||||
QmlTimeline currentTimeline = m_timelineWidget->graphicsScene()->currentTimeline();
|
||||
if (currentTimeline.isValid())
|
||||
m_timelineWidget->toolBar()->setCurrentTimeline(currentTimeline);
|
||||
|
||||
} else if (QmlTimelineKeyframeGroup::checkKeyframesType(
|
||||
node)) { /* During copy and paste type info might be incomplete */
|
||||
QmlTimelineKeyframeGroup frames(node);
|
||||
|
Reference in New Issue
Block a user