summaryrefslogtreecommitdiff
path: root/src/plugins/valgrind
diff options
context:
space:
mode:
authorFelix Geyer <debfx@fobos.de>2011-11-09 09:39:58 +0100
committerEike Ziller <eike.ziller@nokia.com>2011-11-09 11:00:13 +0100
commit28b920ecd446e46512c9e7b1bba9e459136a30ed (patch)
treed429d91c3c0fc5fa1887c19bc173c80d6db63f64 /src/plugins/valgrind
parent371ae894f0fc4a26313eafb5de168b3e31b8a8de (diff)
downloadqt-creator-28b920ecd446e46512c9e7b1bba9e459136a30ed.tar.gz
Fix qreal is not double.
Change-Id: Ife56e908a67da70ebe5af223b19fc8b99fc3a1d2 Reviewed-by: hjk <qthjk@ovi.com> (cherry picked from commit 3b0f26e23136e60b61203c26075349f1e541f654)
Diffstat (limited to 'src/plugins/valgrind')
-rw-r--r--src/plugins/valgrind/callgrindhelper.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/plugins/valgrind/callgrindhelper.cpp b/src/plugins/valgrind/callgrindhelper.cpp
index 704223b43f..d196d53685 100644
--- a/src/plugins/valgrind/callgrindhelper.cpp
+++ b/src/plugins/valgrind/callgrindhelper.cpp
@@ -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);
}