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
0e3448f96c
commit
648090d167
|
@ -100,7 +100,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