From 8cf8182967af4c7d69deb9b583eb19aaa1b9f9b0 Mon Sep 17 00:00:00 2001 From: tobtoht 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