feather/contrib/depends/patches/qt/fix_alternating_row_icons_windows.patch
tobtoht 91f68113d2
depends: qt: fix alternating row icons on windows
Thanks to Lyza for reporting this issue
2023-10-22 19:37:58 +02:00

30 lines
1.4 KiB
Diff

From 8cf8182967af4c7d69deb9b583eb19aaa1b9f9b0 Mon Sep 17 00:00:00 2001
From: tobtoht <tob@featherwallet.org>
Date: Sun, 22 Oct 2023 19:03:27 +0200
Subject: [PATCH] Revert "Don't double draw ItemViewItems' icons in
QStyleSheetStyle::drawControl"
This reverts commit e2e0c07455e5e6c8f65dc76a86a63b93dadb7600.
---
src/widgets/styles/qstylesheetstyle.cpp | 5 -----
1 file changed, 5 deletions(-)
diff --git a/src/widgets/styles/qstylesheetstyle.cpp b/src/widgets/styles/qstylesheetstyle.cpp
index e9443ac9c8..e81381681d 100644
--- a/src/widgets/styles/qstylesheetstyle.cpp
+++ b/src/widgets/styles/qstylesheetstyle.cpp
@@ -4374,11 +4374,6 @@ void QStyleSheetStyle::drawControl(ControlElement ce, const QStyleOption *opt, Q
optIndicator.backgroundBrush = Qt::NoBrush; // no background
optIndicator.text.clear();
QWindowsStyle::drawControl(ce, &optIndicator, p, w);
-
- // If the indicator has an icon, it has been drawn now.
- // => don't draw it again.
- optCopy.icon = QIcon();
-
// Now draw text, background, and highlight, but not the indicator with the
// base style. Since we can't turn off HasCheckIndicator to prevent the base
// style from drawing the check indicator again (it would change how the item
--
2.42.0