From 648587fbdc840209272211ec609c70ac056d0744 Mon Sep 17 00:00:00 2001 From: Jan Arve Saether Date: Thu, 28 Aug 2014 08:46:09 +0200 Subject: [PATCH] Do not draw combo box items as checked QComboBox sets the checked styleoption state before asking the style to paint it's items. I suspect this checked state was only meant to be used as an indicator of the current item for some styles. For Fusion this case seems to have been forgotten. Now the code tries to align with how qgtkstyle does it. Change-Id: I26d8e86bc0d490d5b820df0239ee3f7bdd4208b1 Task-number: QTBUG-40976 Reviewed-by: Gabriel de Dietrich --- src/widgets/styles/qfusionstyle.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/widgets/styles/qfusionstyle.cpp b/src/widgets/styles/qfusionstyle.cpp index d1b5bcc95c..a2b08f306c 100644 --- a/src/widgets/styles/qfusionstyle.cpp +++ b/src/widgets/styles/qfusionstyle.cpp @@ -1614,7 +1614,7 @@ void QFusionStyle::drawControl(ControlElement element, const QStyleOption *optio QRect pmr(0, 0, pixw, pixh); pmr.moveCenter(vCheckRect.center()); painter->setPen(menuItem->palette.text().color()); - if (checkable && checked) { + if (!ignoreCheckMark && checkable && checked) { QStyleOption opt = *option; if (act) { QColor activeColor = mergedColors(option->palette.background().color(),