1
0
mirror of https://github.com/tumic0/GPXSee.git synced 2024-11-28 05:34:47 +01:00

Do not blur the icons when resizing them

This commit is contained in:
Martin Tůma 2024-04-03 02:18:00 +02:00
parent 3e1bddbcfd
commit 324168340b

View File

@ -170,8 +170,7 @@ void WaypointItem::paint(QPainter *painter,
if (_font.bold()) if (_font.bold())
painter->drawPixmap(-_icon->width() * 0.625, icon.isNull() painter->drawPixmap(-_icon->width() * 0.625, icon.isNull()
? -_icon->height() * 1.25 : -_icon->height() * 0.625, ? -_icon->height() * 1.25 : -_icon->height() * 0.625,
_icon->scaled(_icon->width() * 1.25, _icon->height() * 1.25, _icon->scaled(_icon->width() * 1.25, _icon->height() * 1.25));
Qt::IgnoreAspectRatio, Qt::SmoothTransformation));
else else
painter->drawPixmap(-_icon->width()/2.0, icon.isNull() painter->drawPixmap(-_icon->width()/2.0, icon.isNull()
? -_icon->height() : -_icon->height()/2, *_icon); ? -_icon->height() : -_icon->height()/2, *_icon);