ProjectExplorer: Fix theming of KitAreaWidget

Let the parent widget (MiniProjectTargetSelector) paint the background.
Remove all unneeded QStyle and QPalette setters.

(Note: select a kit with mutable device to see the fix)

Change-Id: I9166659580c3cb3047155ccea65c749d5d542f07
Reviewed-by: Tobias Hunger <tobias.hunger@qt.io>
This commit is contained in:
Alessandro Portale
2019-12-19 17:17:54 +01:00
parent 4bd0b9d101
commit 6b38f0c47d
4 changed files with 0 additions and 32 deletions

View File

@@ -613,7 +613,6 @@ KitAreaWidget::KitAreaWidget(QWidget *parent) : QWidget(parent),
m_layout(new QGridLayout(this))
{
m_layout->setContentsMargins(3, 3, 3, 3);
setAutoFillBackground(true);
connect(KitManager::instance(), &KitManager::kitUpdated, this, &KitAreaWidget::updateKit);
}
@@ -643,9 +642,6 @@ void KitAreaWidget::setKit(Kit *k)
QLabel *label = new QLabel(aspect->displayName());
m_labels << label;
widget->setStyle(QStyleFactory::create(QLatin1String("fusion")));
widget->setPalette(palette());
m_layout->addWidget(label, row, 0);
m_layout->addWidget(widget->mainWidget(), row, 1);
m_layout->addWidget(widget->buttonWidget(), row, 2);