Skip to content
Snippets Groups Projects
Unverified Commit 1fa149b4 authored by Beerwerth, Randolf's avatar Beerwerth, Randolf Committed by GitHub
Browse files

Merge pull request #966 from gpospelov/Qt5.9ManhattanFix

Fix for Qt older than 5.11
parents 3b09a0d9 16ef973f
No related branches found
No related tags found
No related merge requests found
......@@ -468,7 +468,12 @@ void StyleHelper::drawIconWithShadow(const QIcon& icon, const QRect& rect, QPain
// tmp);
// Draw the actual pixmap...
#if QT_VERSION >= QT_VERSION_CHECK(5, 11, 0)
int space = p->fontMetrics().horizontalAdvance('M') * 0.05;
#else
int space = p->fontMetrics().width('M') * 0.05;
#endif
cachePainter.drawPixmap(
QRect(QPoint(radius, radius) + offset, QSize(px.width(), px.height()))
.marginsRemoved(QMargins(space, space, space, space)),
......
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