diff options
| author | Axel Spoerl <axel.spoerl@qt.io> | 2022-11-16 16:39:11 +0100 |
|---|---|---|
| committer | Axel Spoerl <axel.spoerl@qt.io> | 2022-11-17 07:52:26 +0100 |
| commit | d655391d010952c75674c7adb8303d5f0375610d (patch) | |
| tree | aa871353d21d4f0e34498c682b827022df4df673 /examples/qtestlib/tutorial4/testgui.cpp | |
| parent | 7ea689c613c77aba2fbb638804b449749de38dd8 (diff) | |
Replace warning with debug message in dockwidget high DPI mapping
When a dock widget is moved between high DPI screens, it's native
position is calculated and applied. The calculation falls back to a
mapping without high DPI, if the dock widget's initial position cannot
be mapped to a QScreen.
A warning was emitted in that case, to inform the user about a
potential screen misconfiguration (e.g. a physical screens not being
mapped exactly next to each other, leaving a gap). Despite of the
warning, the position calculation safely falls back to non high DPI.
The warning also kicks in when the dock widget's top left position
is located outside a screen, hence being invisible.
Since calculating an invisible top left position is possible without
high DPI mapping, this patch replaces the warning with a
debug message.
Fixes: QTBUG-108311
Pick-to: 6.4
Change-Id: I692034e5aeb5f7a94cca519ce055795fa72ea216
Reviewed-by: Shawn Rutledge <shawn.rutledge@qt.io>
Diffstat (limited to 'examples/qtestlib/tutorial4/testgui.cpp')
0 files changed, 0 insertions, 0 deletions
