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:
parent
134737afda
commit
74417d8f36
|
@ -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();
|
||||||
|
|
Loading…
Reference in New Issue
Block a user