From 72e473553d0eeaa340ceccc4838a8072c97f7719 Mon Sep 17 00:00:00 2001 From: Roman Telezhynskyi Date: Fri, 17 Mar 2017 17:27:59 +0200 Subject: [PATCH] Cppcheck warning. --HG-- branch : develop --- src/libs/vwidgets/fancytabbar/fancytabbar.cpp | 10 +++------- 1 file changed, 3 insertions(+), 7 deletions(-) diff --git a/src/libs/vwidgets/fancytabbar/fancytabbar.cpp b/src/libs/vwidgets/fancytabbar/fancytabbar.cpp index 69fb20796..a4ad096aa 100644 --- a/src/libs/vwidgets/fancytabbar/fancytabbar.cpp +++ b/src/libs/vwidgets/fancytabbar/fancytabbar.cpp @@ -508,14 +508,9 @@ void FancyTabBar::PaintTab(QPainter *painter, int tabIndex) const painter->setPen(selected ? StyleHelper::panelTextColor() : QColor(255, 255, 255, 120)); } -#if defined(Q_OS_MAC) - bool isMac=true; -#else - bool isMac = false; -#endif - +#ifndef Q_OS_MAC // hover - if(!isMac && !selected && enabled) + if(!selected && enabled) { painter->save(); int fader = int(m_attachedTabs[tabIndex]->fader()); @@ -540,6 +535,7 @@ void FancyTabBar::PaintTab(QPainter *painter, int tabIndex) const painter->restore(); } +#endif //#ifndef Q_OS_MAC if (!enabled) {