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 /src/widgets/widgets | |
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 'src/widgets/widgets')
-rw-r--r-- | src/widgets/widgets/qdockwidget.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/widgets/widgets/qdockwidget.cpp b/src/widgets/widgets/qdockwidget.cpp index 0c2777698a..67bb099446 100644 --- a/src/widgets/widgets/qdockwidget.cpp +++ b/src/widgets/widgets/qdockwidget.cpp @@ -1006,7 +1006,7 @@ bool QDockWidgetPrivate::mouseMoveEvent(QMouseEvent *event) - windowMarginOffset; } else { // Fallback in the unlikely case that source and target screens could not be established - qCWarning(lcQpaDockWidgets) + qCDebug(lcQpaDockWidgets) << "QDockWidget failed to find relevant screen info. screenFrom:" << screenFrom << "screenTo:" << screenTo << " wdgScreen:" << wdgScreen << "orgWdgScreen" << orgWdgScreen; |