From 478fa56021a9618d92af3c8cb66b04d894ac75ba Mon Sep 17 00:00:00 2001 From: Thomas Hartmann Date: Tue, 18 Jan 2022 17:34:34 +0100 Subject: [PATCH] StudioWelcome: Add setting for splash screen timeout Change-Id: I9e9a1b1a190a2cf04ffae5d3ac943621e5b3f9f7 Reviewed-by: Reviewed-by: Qt CI Bot Reviewed-by: Thomas Hartmann --- src/plugins/studiowelcome/studiowelcomeplugin.cpp | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/src/plugins/studiowelcome/studiowelcomeplugin.cpp b/src/plugins/studiowelcome/studiowelcomeplugin.cpp index 67d02c78f72..53f6e25a7fc 100644 --- a/src/plugins/studiowelcome/studiowelcomeplugin.cpp +++ b/src/plugins/studiowelcome/studiowelcomeplugin.cpp @@ -549,7 +549,9 @@ bool StudioWelcomePlugin::initialize(const QStringList &arguments, QString *erro m_welcomeMode = new WelcomeMode; m_removeSplashTimer.setSingleShot(true); - m_removeSplashTimer.setInterval(15000); + const QString splashScreenTimeoutEntry = "QML/Designer/splashScreenTimeout"; + m_removeSplashTimer.setInterval( + Core::ICore::settings()->value(splashScreenTimeoutEntry, 15000).toInt()); connect(&m_removeSplashTimer, &QTimer::timeout, this, [this] { closeSplashScreen(); }); return true; }