diff --git a/src/widgets/styles/qfusionstyle.cpp b/src/widgets/styles/qfusionstyle.cpp index f41533ed29d..89e904b5a16 100644 --- a/src/widgets/styles/qfusionstyle.cpp +++ b/src/widgets/styles/qfusionstyle.cpp @@ -1453,13 +1453,10 @@ void QFusionStyle::drawControl(ControlElement element, const QStyleOption *optio int checkcol = qMax(menuItem->rect.height() * 0.79, qMax(menuItem->maxIconWidth, dpiScaled(21, option))); bool ignoreCheckMark = false; - if ( #if QT_CONFIG(combobox) - qobject_cast(widget) || -#endif - (option->styleObject && option->styleObject->property("_q_isComboBoxPopupItem").toBool())) + if (qobject_cast(widget)) ignoreCheckMark = true; //ignore the checkmarks provided by the QComboMenuDelegate - +#endif if (!ignoreCheckMark || menuItem->state & (State_On | State_Off)) { // Check, using qreal and QRectF to avoid error accumulation const qreal boxMargin = dpiScaled(3.5, option);