From 74417d8f368a8b0c5907af2cd18483b2ec2f75d9 Mon Sep 17 00:00:00 2001 From: David Rosca Date: Sun, 17 Jul 2016 09:38:01 +0200 Subject: [PATCH] Fix warning about converting double to int --- src/lib/tabwidget/tabicon.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/lib/tabwidget/tabicon.cpp b/src/lib/tabwidget/tabicon.cpp index e6d2a4c1a..87f928f60 100644 --- a/src/lib/tabwidget/tabicon.cpp +++ b/src/lib/tabwidget/tabicon.cpp @@ -115,7 +115,7 @@ void TabIcon::paintEvent(QPaintEvent* event) QPainter p(this); const int size = 16; - const int pixmapSize = size * m_animationPixmap.devicePixelRatioF(); + const int pixmapSize = qRound(size * m_animationPixmap.devicePixelRatioF()); // Center the pixmap in rect QRect r = rect();