forked from qt-creator/qt-creator
Improve Animationcurve editor
- Prevent insertion of invalid animation ranges that may cause DS hanging - Properly update the toolbar when switching to a different qml file - Show an informative text instead of the empty curve editor when the current file does not contain a timeline - Move the toolbar into its own class - Add an implentation to the "Set Default" button Fixes: QDS-6543 Fixes: QDS-6542 Fixes: QDS-6545 Fixes: QDS-6544 Change-Id: Id6bc1457627ea23a670e74ea335fbb475711b9a6 Reviewed-by: <github-actions-qt-creator@cristianadam.eu> Reviewed-by: Thomas Hartmann <thomas.hartmann@qt.io>
This commit is contained in:
@@ -396,11 +396,7 @@ void CurveEditorView::commitEndFrame(int frame)
|
||||
|
||||
void CurveEditorView::init()
|
||||
{
|
||||
QmlTimeline timeline = activeTimeline();
|
||||
if (timeline.isValid()) {
|
||||
m_model->setTimeline(timeline);
|
||||
}
|
||||
|
||||
m_model->setTimeline(activeTimeline());
|
||||
}
|
||||
|
||||
} // namespace QmlDesigner
|
||||
|
||||
Reference in New Issue
Block a user