diff options
author | Thomas Hartmann <thomas.hartmann@qt.io> | 2022-04-28 18:26:33 +0200 |
---|---|---|
committer | Tim Jenssen <tim.jenssen@qt.io> | 2022-04-28 17:01:22 +0000 |
commit | 77d5999a339cd0e3c264cb6dcb4117e325c4a2f4 (patch) | |
tree | 3bb6c9ff53c81ed5206202bca58e6c2cca18e365 | |
parent | 23661dfb4b97f9b60dcbe5f732b78088646de612 (diff) | |
download | qt-creator-qds-3.3.tar.gz |
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.cpp | 5 |
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 |