Fix pixel ratio check

This commit is contained in:
craig.p.drummond
2014-09-19 16:43:20 +00:00
committed by craig.p.drummond
parent 85e79fcfcb
commit 3321f64195

View File

@@ -52,8 +52,7 @@ void RatingPainter::paint(QPainter *p, const QRect &r, int rating)
}
#if QT_VERSION >= 0x050100
double pixelRatio=Icon("dialog-ok").pixmap(16, 16).devicePixelRatio();
if (!isNull() && Utils::equal(pixelRatio, pixmaps[0].devicePixelRatio())) {
if (!isNull() && !Utils::equal(pixelRatio, pixmaps[0].devicePixelRatio())) {
pixmaps[0]=QPixmap();
}
#endif