From 0a77097395a043ec08c9463ca45ba7ff709f7e04 Mon Sep 17 00:00:00 2001 From: Marcus Tillmanns Date: Mon, 4 Jul 2022 11:20:33 +0200 Subject: [PATCH] cmake: Fix cmake option display When editing a multiple choice cmake option the background ( the text of the current value ) would shine through. This fixes that by setting setAutoFillBackground(true) on the editor widget Change-Id: Ie36ea13f2d0532c375f22a33569772c3b2c604fb Reviewed-by: Cristian Adam Reviewed-by: --- src/plugins/cmakeprojectmanager/configmodelitemdelegate.cpp | 1 + 1 file changed, 1 insertion(+) diff --git a/src/plugins/cmakeprojectmanager/configmodelitemdelegate.cpp b/src/plugins/cmakeprojectmanager/configmodelitemdelegate.cpp index c09a6cd0d56..32e63cfd611 100644 --- a/src/plugins/cmakeprojectmanager/configmodelitemdelegate.cpp +++ b/src/plugins/cmakeprojectmanager/configmodelitemdelegate.cpp @@ -64,6 +64,7 @@ QWidget *ConfigModelItemDelegate::createEditor(QWidget *parent, const QStyleOpti auto edit = new QComboBox(parent); edit->setAttribute(Qt::WA_MacSmallSize); edit->setFocusPolicy(Qt::StrongFocus); + edit->setAutoFillBackground(true); for (const QString &s : qAsConst(data.values)) edit->addItem(s); return edit;