aboutsummaryrefslogtreecommitdiffstats
path: root/src/plugins/qmldesigner/components/timelineeditor
diff options
context:
space:
mode:
authorThomas Hartmann <thomas.hartmann@qt.io>2019-11-12 11:06:14 +0100
committerThomas Hartmann <thomas.hartmann@qt.io>2019-11-12 10:38:01 +0000
commit725432be04ff075b1f6d3869b678b1e6b9d64ab9 (patch)
tree33c7fba12d2c3deea1b9cbf8be82ea0e3300abb7 /src/plugins/qmldesigner/components/timelineeditor
parent5df7ad94ecd44681b38e78641471754d0ab90eda (diff)
QmlDesigner: Always show timeline settings panel mapping table
An empty table is confusing. Once a state is added we enforce an id for the root node. Task-number: QDS-1218 Change-Id: Ifc2c0317dfbed2c8d8b9dd540079e6879fe4f2a9 Reviewed-by: Miikka Heikkinen <miikka.heikkinen@qt.io> Reviewed-by: Mahmoud Badri <mahmoud.badri@qt.io>
Diffstat (limited to 'src/plugins/qmldesigner/components/timelineeditor')
-rw-r--r--src/plugins/qmldesigner/components/timelineeditor/timelinesettingsmodel.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/plugins/qmldesigner/components/timelineeditor/timelinesettingsmodel.cpp b/src/plugins/qmldesigner/components/timelineeditor/timelinesettingsmodel.cpp
index e308d65772..6ecb4ef232 100644
--- a/src/plugins/qmldesigner/components/timelineeditor/timelinesettingsmodel.cpp
+++ b/src/plugins/qmldesigner/components/timelineeditor/timelinesettingsmodel.cpp
@@ -149,7 +149,7 @@ void TimelineSettingsModel::resetModel()
setHorizontalHeaderLabels(
QStringList({tr("State"), tr("Timeline"), tr("Animation"), tr("Fixed Frame")}));
- if (timelineView()->isAttached() && timelineView()->rootModelNode().hasId()) {
+ if (timelineView()->isAttached()) {
addState(ModelNode());
for (const QmlModelState &state :
QmlVisualNode(timelineView()->rootModelNode()).states().allStates())