Skip to content

Commit

Permalink
Merge a9a8b85 into 4561bd1
Browse files Browse the repository at this point in the history
  • Loading branch information
agarny committed Feb 14, 2019
2 parents 4561bd1 + a9a8b85 commit 36198ef
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/plugins/miscellaneous/Core/src/tabbarwidget.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -52,7 +52,7 @@ void TabBarStyle::drawControl(ControlElement pElement,
if (!styleHint(SH_UnderlineShortcut, pOption, pWidget))
alignment |= Qt::TextHideMnemonic;

bool isVerticalTab = (tab->shape == QTabBar::RoundedWest)
bool isVerticalTab = (tab->shape == QTabBar::RoundedWest)
|| (tab->shape == QTabBar::RoundedEast)
|| (tab->shape == QTabBar::TriangularWest)
|| (tab->shape == QTabBar::TriangularEast);
Expand Down Expand Up @@ -102,7 +102,7 @@ void TabBarStyle::drawControl(ControlElement pElement,
drawItemText(pPainter, tabRect, alignment, tab->palette,
tab->state & State_Enabled, tab->text,
( (tab->state & State_Selected)
&& pWidget->isActiveWindow())?
&& (tab->state & State_Active))?
QPalette::BrightText:
QPalette::WindowText);

Expand Down

0 comments on commit 36198ef

Please sign in to comment.