forked from qt-creator/qt-creator
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:
@@ -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;
|
||||
}
|
||||
|
Reference in New Issue
Block a user