Fix build on Mac OS X.

--HG--
branch : develop
This commit is contained in:
Roman Telezhynskyi 2017-06-05 21:46:04 +03:00
parent e4099ec4ed
commit 4df84fdd94

View File

@ -495,7 +495,8 @@ void FancyTabBar::PaintTab(QPainter *painter, int tabIndex) const
boldFont.setBold(true); boldFont.setBold(true);
painter->setFont(boldFont); painter->setFont(boldFont);
painter->setPen(selected ? QColor(255, 255, 255, 160) : QColor(0, 0, 0, 110)); painter->setPen(selected ? QColor(255, 255, 255, 160) : QColor(0, 0, 0, 110));
const int textFlags = Qt::AlignCenter | (drawIcon ? Qt::AlignBottom : Qt::AlignVCenter) | Qt::TextWordWrap; const int textFlags = static_cast<int>(Qt::AlignCenter | (drawIcon ? Qt::AlignBottom : Qt::AlignVCenter)
| Qt::TextWordWrap);
if (enabled) if (enabled)
{ {
painter->drawText(tabTextRect, textFlags, tabText); painter->drawText(tabTextRect, textFlags, tabText);