qt6-bb10/src
Axel Spoerl 30cf6ed32f Don't double draw ItemViewItems' icons in QStyleSheetStyle::drawControl
To draw a CE_ItemViewItem QStyleSheetStyle::drawControl lets parts
of the element being drawn by QWindowsStyle, others by baseStyle().
If the ItemViewItem has an icon, it can lead to the icon being drawn
twice: Once by QWindowsStyle, respecting options set in the stylesheet.
Once by the baseStyle(), not respecting stylesheet options.

When the style sheet modifies the icon's position, the icon will be
drawn at this position as well as on the default position.

This patch prevents an icon to be drawn by baseStyle() when it has
already been drawn by the QWindowsStyle.

Fixes: QTBUG-110942
Pick-to: 6.6 6.5
Change-Id: I8622dfe95bef13b196a3e38025fac1cc92f097c9
Reviewed-by: Volker Hilsheimer <volker.hilsheimer@qt.io>
2023-06-08 19:29:34 +02:00
..
3rdparty forkfd: Add support for eventfd(2) in FreeBSD 2023-06-07 17:09:52 -07:00
android Android: add missing private classes to Qt6Android.jar 2023-04-19 09:50:30 +03:00
assets Add Qt icon library for examples 2023-04-22 18:14:38 +03:00
concurrent Clarify module changes in Qt6 2023-05-09 22:36:06 +00:00
corelib Align QKeySequence behavior between macOS and iOS 2023-06-08 18:25:59 +02:00
dbus QDBus: Fix typo in a function name 2023-05-26 15:46:34 +02:00
entrypoint src: Remove remains of qmake conversion from CMakeLists.txt files 2023-02-10 23:36:51 +01:00
gui Align QKeySequence behavior between macOS and iOS 2023-06-08 18:25:59 +02:00
network qnetworkreplyfileimpl_p.h: fix header guard name 2023-06-08 18:07:57 +02:00
opengl rhi: Make it a QPA-style private but semi-public API 2023-05-21 15:42:58 +02:00
openglwidgets Make QOpenGLWidget work with QT_WIDGETS_HIGHDPI_DOWNSCALE 2023-05-24 06:55:57 +00:00
platformsupport QXkbCommon: set Qt::KeypadModifier when keypad button is pressed 2023-04-20 06:14:58 +00:00
plugins iOS: Ignore next touch event if keyboard has lost focus during touch 2023-06-08 16:25:59 +00:00
printsupport Fix GCC 13 warning about freeing the global static 2023-06-06 15:26:04 -07:00
sql Update Cached Table example meta-data 2023-05-24 17:29:20 +02:00
testlib Remove the manual undef of the min/max macros, or def NOMINMAX 2023-06-08 01:18:04 +02:00
tools Revert "CMake: make compile options consistent for Qt created libraries" 2023-06-08 11:04:45 +00:00
widgets Don't double draw ItemViewItems' icons in QStyleSheetStyle::drawControl 2023-06-08 19:29:34 +02:00
xml Clarify module changes in Qt6 2023-05-09 22:36:06 +00:00
CMakeLists.txt Add Qt icon library for examples 2023-04-22 18:14:38 +03:00