StudioWelcome: Add setting for splash screen timeout

Change-Id: I9e9a1b1a190a2cf04ffae5d3ac943621e5b3f9f7
Reviewed-by: <github-actions-qt-creator@cristianadam.eu>
Reviewed-by: Qt CI Bot <qt_ci_bot@qt-project.org>
Reviewed-by: Thomas Hartmann <thomas.hartmann@qt.io>
This commit is contained in:
Thomas Hartmann
2022-01-18 17:34:34 +01:00
parent 81dd1ba294
commit 478fa56021

View File

@@ -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;
}