summaryrefslogtreecommitdiffstats
path: root/tests/auto/gui
diff options
context:
space:
mode:
authorBernd Weimer <bweimer@blackberry.com>2013-06-17 12:01:00 +0200
committerThe Qt Project <gerrit-noreply@qt-project.org>2013-06-25 14:31:00 +0200
commit6f0d258424a6c95a30ad63ae563f38e38ef47d7c (patch)
tree95de045d39d0d9baa3896f5d9d308c8c4c2bced3 /tests/auto/gui
parent28a7af7b2ae1accec904b276d3bd240608d3a73f (diff)
Fixed qrawfont auto test
Number literals are always interpreted as double. This lead to errors on platforms that define qreal as float. Change-Id: I838f690c33bb97e39a2cca2cfd3bdfb9482bc2b2 Reviewed-by: Peter Hartmann <phartmann@blackberry.com> Reviewed-by: Konstantin Ritt <ritt.ks@gmail.com> Reviewed-by: Thomas McGuire <thomas.mcguire@kdab.com>
Diffstat (limited to 'tests/auto/gui')
-rw-r--r--tests/auto/gui/text/qrawfont/tst_qrawfont.cpp8
1 files changed, 4 insertions, 4 deletions
diff --git a/tests/auto/gui/text/qrawfont/tst_qrawfont.cpp b/tests/auto/gui/text/qrawfont/tst_qrawfont.cpp
index fb5bb18f87..ae6e450301 100644
--- a/tests/auto/gui/text/qrawfont/tst_qrawfont.cpp
+++ b/tests/auto/gui/text/qrawfont/tst_qrawfont.cpp
@@ -215,8 +215,8 @@ void tst_QRawFont::correctFontData_data()
<< QFont::StyleNormal
<< QFont::Normal
<< QFont::HintingPreference(*hintingPreference)
- << 1000.0
- << 10.0;
+ << qreal(1000.0)
+ << qreal(10.0);
fileName = testFontBoldItalic;
title = fileName
@@ -229,8 +229,8 @@ void tst_QRawFont::correctFontData_data()
<< QFont::StyleItalic
<< QFont::Bold
<< QFont::HintingPreference(*hintingPreference)
- << 1000.0
- << 10.0;
+ << qreal(1000.0)
+ << qreal(10.0);
++hintingPreference;
}