summaryrefslogtreecommitdiffstats
path: root/tests/manual
diff options
context:
space:
mode:
authorAlessandro Portale <alessandro.portale@nokia.com>2009-10-30 17:57:16 (GMT)
committerAlessandro Portale <alessandro.portale@nokia.com>2009-10-30 17:57:16 (GMT)
commitd6254cb596a8e320959a8bbc0310cf43f16657ba (patch)
tree864d3d01d9b93f3a2cfde915f43bd5e475694d61 /tests/manual
parent243bd8c8f47f37b7a066a99bad180310dba2edcb (diff)
downloadQt-d6254cb596a8e320959a8bbc0310cf43f16657ba.zip
Qt-d6254cb596a8e320959a8bbc0310cf43f16657ba.tar.gz
Qt-d6254cb596a8e320959a8bbc0310cf43f16657ba.tar.bz2
Fix a rounding error.
Reviewed-by: trustme
Diffstat (limited to 'tests/manual')
-rw-r--r--tests/manual/textrendering/textperformance/main.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/tests/manual/textrendering/textperformance/main.cpp b/tests/manual/textrendering/textperformance/main.cpp
index 3019ebf..47e0a88 100644
--- a/tests/manual/textrendering/textperformance/main.cpp
+++ b/tests/manual/textrendering/textperformance/main.cpp
@@ -84,7 +84,7 @@ public:
p.drawText(2, height() - fm.descent(),
QLatin1String("Fps: ") +
- QString::number(1000 / (qreal)(lastMsecsSum / lastMeasurementsCount), 'f', 1)
+ QString::number(1000 / ((qreal)lastMsecsSum / lastMeasurementsCount), 'f', 1)
);
}