summaryrefslogtreecommitdiffstats
path: root/examples/widgets/animation/states/states.desktop
diff options
context:
space:
mode:
authorVolker Hilsheimer <volker.hilsheimer@qt.io>2022-12-02 18:24:23 +0100
committerVolker Hilsheimer <volker.hilsheimer@qt.io>2022-12-08 13:28:43 +0100
commit9bc36308c77e10c6a890c3dd6a72dd2f23a72288 (patch)
treede373b227f87b4848b7bba3442bd8b710cb3efae /examples/widgets/animation/states/states.desktop
parentbe36b6356ad718f9618012f25f8f26361c69bdcb (diff)
Windows: regenerate systray icon when screen resolution changes
When the screen resolution or scale factor changes, then we have to recreate the system tray icon so that it doesn't get blurry. Such changes generate a WM_TASKBARCREATED message, which we already handle through a self-registered message ID to re-add the icon when the task bar/explorer crashed. So call updateIcon there to recreate the HICON before adding it again. For this to work, we have to actually store the QIcon in the already present (but so far unused) m_icon member, and reset that member before calling updateIcon, which would otherwise be a no-op. Fixes: QTBUG-108641 Pick-to: 6.4 6.2 Change-Id: If3dd042416b7f61bbb3b43f7d563e52b406136a2 Reviewed-by: Tor Arne Vestbø <tor.arne.vestbo@qt.io>
Diffstat (limited to 'examples/widgets/animation/states/states.desktop')
0 files changed, 0 insertions, 0 deletions