Cppcheck warning.

--HG--
branch : develop
This commit is contained in:
Roman Telezhynskyi 2017-03-17 17:27:59 +02:00
parent b645b1083a
commit 72e473553d

View File

@ -508,14 +508,9 @@ void FancyTabBar::PaintTab(QPainter *painter, int tabIndex) const
painter->setPen(selected ? StyleHelper::panelTextColor() : QColor(255, 255, 255, 120)); painter->setPen(selected ? StyleHelper::panelTextColor() : QColor(255, 255, 255, 120));
} }
#if defined(Q_OS_MAC) #ifndef Q_OS_MAC
bool isMac=true;
#else
bool isMac = false;
#endif
// hover // hover
if(!isMac && !selected && enabled) if(!selected && enabled)
{ {
painter->save(); painter->save();
int fader = int(m_attachedTabs[tabIndex]->fader()); int fader = int(m_attachedTabs[tabIndex]->fader());
@ -540,6 +535,7 @@ void FancyTabBar::PaintTab(QPainter *painter, int tabIndex) const
painter->restore(); painter->restore();
} }
#endif //#ifndef Q_OS_MAC
if (!enabled) if (!enabled)
{ {