summaryrefslogtreecommitdiffstats
path: root/src/tools/uic/cpp/cppwriteinitialization.cpp
diff options
context:
space:
mode:
authorOliver Wolff <oliver.wolff@qt.io>2024-03-28 07:22:43 +0100
committerOliver Wolff <oliver.wolff@qt.io>2024-04-10 21:01:06 +0200
commitca851b33171e652b740efbc47d41b8cf906ecd3d (patch)
treeea1e9fddbb49cff04d78af0c6d4a3d2f53469bae /src/tools/uic/cpp/cppwriteinitialization.cpp
parent8013b643c2e1acbad4963db8e00e159931316721 (diff)
Unify behavior of QSystemTrayIcon::geometry for hidden icons on Windows
When a system tray icon on Windows wasn't visible (hidden behind the ^ icon in the task bar) our previous implementation gave different results on Windows 10 and Windows 11. On Windows 10 the geometry returned the geometry of the ^ icon itself while we returned a geometry outside of the screen geometry on Windows 11 (that was what the Windows API gave us). We work around this problem by using version specific hacks to be able to check for the visibility of the system tray icon itself. If the icon is hidden we just return QRect(). [ChangeLog][Windows] The geometry of a hidden QSystemTrayIcon was unified over different Windows versions. It will always return QRect() now. Change-Id: Iee7dea184936a13a9221df9c421400ba304a4c38 Reviewed-by: Miguel Costa <miguel.costa@qt.io>
Diffstat (limited to 'src/tools/uic/cpp/cppwriteinitialization.cpp')
0 files changed, 0 insertions, 0 deletions