From 4df84fdd940cf901bdbd735185b161c64a575e6d Mon Sep 17 00:00:00 2001 From: Roman Telezhynskyi Date: Mon, 5 Jun 2017 21:46:04 +0300 Subject: [PATCH] Fix build on Mac OS X. --HG-- branch : develop --- src/libs/vwidgets/fancytabbar/fancytabbar.cpp | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/libs/vwidgets/fancytabbar/fancytabbar.cpp b/src/libs/vwidgets/fancytabbar/fancytabbar.cpp index 38927fb6d..4156bec86 100644 --- a/src/libs/vwidgets/fancytabbar/fancytabbar.cpp +++ b/src/libs/vwidgets/fancytabbar/fancytabbar.cpp @@ -495,7 +495,8 @@ void FancyTabBar::PaintTab(QPainter *painter, int tabIndex) const boldFont.setBold(true); painter->setFont(boldFont); 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(Qt::AlignCenter | (drawIcon ? Qt::AlignBottom : Qt::AlignVCenter) + | Qt::TextWordWrap); if (enabled) { painter->drawText(tabTextRect, textFlags, tabText);