Trying to fix tab image position. ref #650.

--HG--
branch : develop
This commit is contained in:
Roman Telezhynskyi 2017-04-03 16:21:46 +03:00
parent 862b5823e7
commit 5be8ba3a64

View file

@ -544,7 +544,7 @@ void FancyTabBar::PaintTab(QPainter *painter, int tabIndex) const
{
int textHeight = painter->fontMetrics().boundingRect(QRect(0, 0, width(), height()), Qt::TextWordWrap,
tabText).height();
tabIconRect.adjust(0, 4, 0, -textHeight);
tabIconRect.adjust(0, 0, 0, -textHeight);
StyleHelper::drawIconWithShadow(TabIcon(tabIndex), tabIconRect, painter,
enabled ? QIcon::Normal : QIcon::Disabled);
}