qt6-bb10/src/widgets
Eirik Aavitsland b539dc118e Avoid menu separators disappearing under fractional dpr scaling
An aliased line painted directly on top of the top edge of the clip
rect will work fine when there is no scaling, since the coordinates
will snap downwards. When a fractional scaling is applied however, the
main part of the line width will sometimes fall outside the clip rect,
and so the coordinates will snap it outside, and hence it will not be
painted.
Fix by shifting the y coordinate by .5, to place the center coordinate
of the line to the center of the intended pixel.

Fixes: QTBUG-88934
Task-number: QTBUG-96223
Pick-to: 6.3 6.2
Change-Id: I3ab042bc964eac6ce359d40428c4d79cde9cb78c
Reviewed-by: Nodir Temirkhodjaev <nodir.temir@gmail.com>
Reviewed-by: Volker Hilsheimer <volker.hilsheimer@qt.io>
2022-05-31 22:30:22 +02:00
..
accessible Use SPDX license identifiers 2022-05-16 16:37:38 +02:00
compat Use SPDX license identifiers 2022-05-16 16:37:38 +02:00
dialogs Make uic generate correct C++ comments 2022-05-18 11:53:26 +02:00
doc Use SPDX license identifiers 2022-05-16 16:37:38 +02:00
effects Use SPDX license identifiers 2022-05-16 16:37:38 +02:00
graphicsview Use SPDX license identifiers 2022-05-16 16:37:38 +02:00
itemviews QtWidgets: restore Qt 5 compatibility for save/restore state 2022-05-18 02:21:31 +02:00
kernel Refactor if-else snake into switch statement 2022-05-24 22:11:51 +02:00
styles Avoid menu separators disappearing under fractional dpr scaling 2022-05-31 22:30:22 +02:00
util Use SPDX license identifiers 2022-05-16 16:37:38 +02:00
widgets QSlider::mouseMoveEvent: Remove code that does nothing 2022-05-30 16:57:22 +02:00
CMakeLists.txt Add missing header files to the module sources 2022-05-12 16:34:25 +02:00
Qt6WidgetsMacros.cmake Revert "Ensure versionless wrappers do not introduce a new variable scope" 2021-09-06 23:56:28 +10:00
QtWidgets.dynlist
configure.cmake Core: Remove 'properties' feature 2022-02-14 12:50:59 +01:00
qt_cmdline.cmake CMake: Re-implement configure/qmake's command line handling in CMake 2020-08-17 08:08:20 +02:00
qtwidgets.tracepoints