aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorThomas Hartmann <thomas.hartmann@qt.io>2022-04-28 18:26:33 +0200
committerTim Jenssen <tim.jenssen@qt.io>2022-04-28 17:01:22 +0000
commit77d5999a339cd0e3c264cb6dcb4117e325c4a2f4 (patch)
tree3bb6c9ff53c81ed5206202bca58e6c2cca18e365
parent23661dfb4b97f9b60dcbe5f732b78088646de612 (diff)
StudioWelcome: Disable welcome page if inactiveqds/v3.3.0qds-3.3
On Windows 11 a side effect of having the welcome page active if up to 10% CPU load (one core) in the GUI thread if the user interacts with the GUI. If idle QDS takes 0%, but just clicking at menus can take up to 10% CPU, if the welcome page is active. See QTBUG-102549 and QDS-6750 for profiling data. This seems to be related to accessibility. Change-Id: Id098579003ef63d2d06bfb1f2afaeca15c3bbc70 Reviewed-by: Tim Jenssen <tim.jenssen@qt.io>
-rw-r--r--src/plugins/studiowelcome/studiowelcomeplugin.cpp5
1 files changed, 5 insertions, 0 deletions
diff --git a/src/plugins/studiowelcome/studiowelcomeplugin.cpp b/src/plugins/studiowelcome/studiowelcomeplugin.cpp
index 8c93382973..0637f04ef7 100644
--- a/src/plugins/studiowelcome/studiowelcomeplugin.cpp
+++ b/src/plugins/studiowelcome/studiowelcomeplugin.cpp
@@ -671,6 +671,11 @@ WelcomeMode::WelcomeMode()
m_modeWidget->engine()->setOutputWarningsToStandardError(false);
+ connect(Core::ModeManager::instance(), &Core::ModeManager::currentModeChanged, this, [this](Utils::Id mode){
+ bool active = (mode == Core::Constants::MODE_WELCOME);
+ m_modeWidget->rootObject()->setProperty("active", active);
+ });
+
if (!useNewWelcomePage()) {
#ifdef QT_DEBUG