Skip to content
Snippets Groups Projects
Commit da3b7a6c authored by Thomas Hartmann's avatar Thomas Hartmann Committed by Orgad Shaneh
Browse files

Theming: Fix styling of TargetSettingsWidget


If using the flat style also the TargetSettingsWidget should be flat.

Change-Id: I16147c9868e3e949a4d9aa0fedf85358504bde9e
Reviewed-by: default avatarThorben Kroeger <thorbenkroeger@gmail.com>
Reviewed-by: default avatarOrgad Shaneh <orgads@gmail.com>
parent 0dc99f56
No related branches found
No related tags found
No related merge requests found
......@@ -31,6 +31,8 @@
#include "targetsettingswidget.h"
#include "ui_targetsettingswidget.h"
#include <utils/theme/theme.h>
#include <QPushButton>
using namespace ProjectExplorer::Internal;
......@@ -41,9 +43,15 @@ TargetSettingsWidget::TargetSettingsWidget(QWidget *parent) :
m_targetSelector(new TargetSelector(this))
{
ui->setupUi(this);
ui->header->setStyleSheet(QLatin1String("QWidget#header {"
"border-image: url(:/projectexplorer/images/targetseparatorbackground.png) 43 0 0 0 repeat;"
"}"));
if (Utils::creatorTheme()->widgetStyle() == Utils::Theme::StyleFlat) {
ui->separator->setVisible(false);
ui->shadow->setVisible(false);
} else {
ui->header->setStyleSheet(QLatin1String("QWidget#header {"
"border-image: url(:/projectexplorer/images/targetseparatorbackground.png) 43 0 0 0 repeat;"
"}"));
}
QHBoxLayout *headerLayout = new QHBoxLayout;
headerLayout->setContentsMargins(5, 3, 0, 0);
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment