qt6-bb10/src
Jøger Hansegård 55141c59cd Remove ambiguity in handling of registry keys from setupAPI.h
QWindowsScreen uses setupAPI.h's SetupDiOpenDevRegKey function to read
EDID data for monitors. This function is documented as returning
INVALID_HANDLE_VALUE in case of failure.

The QWindowsScreen code was ambiguous in the sense that it considered
both nullptr and INVALID_HANDLE_VALUE as being invalid handle values.
This inconsistency is likely not a bug, but makes the code harder to
understand.

This patch removes this ambiguity, and QWindowsScreen now follows the
documented behavior when SetupDiOpenDevRegKey fails. In addition, we
replace use of unique_ptr with the new QUniqueHandle template class
because HKEY is a handle type, not a regular pointer type.

Pick-to: 6.5 6.6
Change-Id: Ia863bda504077e59833f6f7a0f855e7915e4edd9
Reviewed-by: Tor Arne Vestbø <tor.arne.vestbo@qt.io>
2023-11-17 23:29:00 +01:00
..
3rdparty Upgrade to Harfbuzz 8.3.0 2023-11-16 02:55:10 +01:00
android Android: cleanup unused java imports 2023-11-18 00:00:10 +02:00
assets Add XDG theme file for example icons 2023-06-26 17:32:10 +00:00
concurrent Doc: Fix warnings and linking issues 2023-10-09 17:24:07 +00:00
corelib Add dedicated child and parent events for QWindow reparenting 2023-11-17 22:10:48 +01:00
dbus Implement QDBusAbstractInterface::setInteractiveAuthorizationAllowed 2023-11-07 19:49:34 +00:00
entrypoint src: Remove remains of qmake conversion from CMakeLists.txt files 2023-02-10 23:36:51 +01:00
gui Don't update DPR on de-expose events 2023-11-17 22:32:25 +01:00
network http2: Fix authentication code and race 2023-11-15 12:18:14 +01:00
opengl Include what you need: <QPointer> 2023-10-12 21:38:54 +02:00
openglwidgets QOpenGLWidget: Call glClear in the default paintGL implementation 2023-09-04 11:46:29 +02:00
platformsupport tslib: generate event with correct buttons and event type 2023-11-08 13:40:44 +02:00
plugins Remove ambiguity in handling of registry keys from setupAPI.h 2023-11-17 23:29:00 +01:00
printsupport QPrinter: allow any margins when setting a fullpage QPageLayout 2023-11-09 16:52:45 +00:00
sql Highlight some examples for 'Data Processing & IO' category 2023-10-31 19:35:59 +02:00
testlib [doc] QBENCHMARK_ONCE: fix typos 2023-11-15 23:40:24 +01:00
tools uic: Use fully qualified enum value for remaining cases 2023-11-15 23:40:24 +01:00
widgets QMdiArea: fix initial single-sub-window in TabbedView 2023-11-17 23:07:01 +02:00
xml Doc: Fix warnings and linking issues 2023-10-09 17:24:07 +00:00
CMakeLists.txt Add Qt icon library for examples 2023-04-22 18:14:38 +03:00