Fix qreal is not double.

Change-Id: Ife56e908a67da70ebe5af223b19fc8b99fc3a1d2
Reviewed-by: hjk <qthjk@ovi.com>
(cherry picked from commit 3b0f26e231)
This commit is contained in:
Felix Geyer
2011-11-09 09:39:58 +01:00
committed by Eike Ziller
parent 371ae894f0
commit 28b920ecd4
4 changed files with 6 additions and 6 deletions

View File

@@ -58,7 +58,7 @@ QColor CallgrindHelper::colorForString(const QString &text)
QColor CallgrindHelper::colorForCostRatio(qreal ratio)
{
ratio = qBound(0.0, ratio, 1.0);
ratio = qBound(qreal(0.0), ratio, qreal(1.0));
return QColor::fromHsv(120 - ratio * 120, 255, 255, (-((ratio-1) * (ratio-1))) * 120 + 120);
}