QmlDesigner: Enable the QtQuick.Timeline editor by default if Qt >= 5.14

The QtQuick.Timeline module is an official Qt module since Qt 5.14.

If Qt Creator (and thus the fallback puppet) are built with Qt 5.14 or
higher, let the default setting for enabling the timeline editor be
true.

Change-Id: Ie44c6635914be0cca0fcbea488cfecf6c4ee0177
Reviewed-by: Thomas Hartmann <thomas.hartmann@qt.io>
This commit is contained in:
Alessandro Portale
2020-01-15 17:43:44 +01:00
parent a5a5d774f3
commit ed7fb30e66

View File

@@ -75,7 +75,13 @@ void DesignerSettings::fromSettings(QSettings *settings)
restoreValue(settings, DesignerSettingsKey::STATESEDITOR_EXPANDED, true);
restoreValue(settings, DesignerSettingsKey::NAVIGATOR_SHOW_ONLY_VISIBLE_ITEMS, true);
restoreValue(settings, DesignerSettingsKey::STANDALONE_MODE, false);
restoreValue(settings, DesignerSettingsKey::ENABLE_TIMELINEVIEW, false);
restoreValue(settings, DesignerSettingsKey::ENABLE_TIMELINEVIEW,
#if (QT_VERSION < QT_VERSION_CHECK(5, 14, 0))
false
#else
true
#endif
);
restoreValue(settings, DesignerSettingsKey::SIMPLE_COLOR_PALETTE_CONTENT, QStringList());
restoreValue(settings, DesignerSettingsKey::ALWAYS_DESIGN_MODE, true);