We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent a1ff7f5 commit 9f44553Copy full SHA for 9f44553
src/widgets/widgets/qcombobox.cpp
@@ -2501,10 +2501,12 @@ bool QComboBoxPrivate::showNativePopup()
2501
QVariant textVariant = model->data(rowIndex, Qt::EditRole);
2502
item->setText(textVariant.toString());
2503
QVariant iconVariant = model->data(rowIndex, Qt::DecorationRole);
2504
+ const Qt::ItemFlags itemFlags = model->flags(rowIndex);
2505
if (iconVariant.canConvert<QIcon>())
2506
item->setIcon(iconVariant.value<QIcon>());
2507
item->setCheckable(true);
2508
item->setChecked(i == currentIndex);
2509
+ item->setEnabled(itemFlags & Qt::ItemIsEnabled);
2510
if (!currentItem || i == currentIndex)
2511
currentItem = item;
2512
0 commit comments