Skip to content

Commit

Permalink
Fix TabLabel.cpp formatting
Browse files Browse the repository at this point in the history
  • Loading branch information
thomassross committed Mar 8, 2016
1 parent d1fa5ee commit 1026004
Showing 1 changed file with 7 additions and 4 deletions.
11 changes: 7 additions & 4 deletions Source/TabLabel.cpp
Expand Up @@ -9,12 +9,15 @@ TabLabel::TabLabel(QWidget* parent = 0, QSettings* palette = 0) : QLabel(parent)
this->isActive = false;
}

void TabLabel::paintEvent(QPaintEvent* event) {
void TabLabel::paintEvent(QPaintEvent* event)
{
QLabel::paintEvent(event);
QColor color(Qt::white);
if (isActive) {
if (!palette->value("TitleBar/Fulltab").toBool()) {
color.setNamedColor(palette->value("Navbar/SelectedColor").toString());
if (isActive)
{
if (!palette->value("TitleBar/Fulltab").toBool())
{
color.setNamedColor(palette->value("Navbar/SelectedColor").toString());
}

QLabel::paintEvent(event);
Expand Down

0 comments on commit 1026004

Please sign in to comment.