Skip to content
Snippets Groups Projects
Commit 791db668 authored by Pospelov, Gennady's avatar Pospelov, Gennady
Browse files

Attempt to make FancyTabBar less ugly on certain dpi screens

parent 22294a3a
No related branches found
No related tags found
No related merge requests found
......@@ -468,8 +468,11 @@ void StyleHelper::drawIconWithShadow(const QIcon& icon, const QRect& rect, QPain
// tmp);
// Draw the actual pixmap...
int space = p->fontMetrics().horizontalAdvance('M') * 0.5;
cachePainter.drawPixmap(
QRect(QPoint(radius, radius) + offset, QSize(px.width(), px.height())), px);
QRect(QPoint(radius, radius) + offset, QSize(px.width(), px.height()))
.marginsRemoved(QMargins(space, space, space, space)),
px);
cachePainter.end();
cache.setDevicePixelRatio(devicePixelRatio);
QPixmapCache::insert(pixmapName, cache);
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment