forked from qt-creator/qt-creator
Fix qreal is not double.
Change-Id: Ife56e908a67da70ebe5af223b19fc8b99fc3a1d2
Reviewed-by: hjk <qthjk@ovi.com>
(cherry picked from commit 3b0f26e231)
This commit is contained in:
@@ -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);
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user