1
mirror of https://invent.kde.org/network/falkon.git synced 2024-11-11 09:32:12 +01:00

Fix warning about converting double to int

This commit is contained in:
David Rosca 2016-07-17 09:38:01 +02:00
parent 134737afda
commit 74417d8f36

View File

@ -115,7 +115,7 @@ void TabIcon::paintEvent(QPaintEvent* event)
QPainter p(this); QPainter p(this);
const int size = 16; const int size = 16;
const int pixmapSize = size * m_animationPixmap.devicePixelRatioF(); const int pixmapSize = qRound(size * m_animationPixmap.devicePixelRatioF());
// Center the pixmap in rect // Center the pixmap in rect
QRect r = rect(); QRect r = rect();