From 648090d16769992a69f4e60334de314ac7ac3c5b 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 0460b0b48..feee640af 100644 --- a/src/lib/tabwidget/tabicon.cpp +++ b/src/lib/tabwidget/tabicon.cpp @@ -100,7 +100,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();