summaryrefslogtreecommitdiffstats
path: root/tests/auto/declarative/qfxtext
diff options
context:
space:
mode:
authorAaron Kennedy <aaron.kennedy@nokia.com>2009-04-23 04:04:28 (GMT)
committerAaron Kennedy <aaron.kennedy@nokia.com>2009-04-23 04:04:28 (GMT)
commitccb43676bbe2f787eec90812e7f5af06f1bc3857 (patch)
tree672597e91d704147dd0dcd37780708434d253e10 /tests/auto/declarative/qfxtext
parentf494ca8c6e438b0099a7b36d93e38453726f6cb2 (diff)
downloadQt-ccb43676bbe2f787eec90812e7f5af06f1bc3857.zip
Qt-ccb43676bbe2f787eec90812e7f5af06f1bc3857.tar.gz
Qt-ccb43676bbe2f787eec90812e7f5af06f1bc3857.tar.bz2
Make declarative autotests compile.
No guarentees are made as to whether they pass.
Diffstat (limited to 'tests/auto/declarative/qfxtext')
-rw-r--r--tests/auto/declarative/qfxtext/tst_qfxtext.cpp18
1 files changed, 9 insertions, 9 deletions
diff --git a/tests/auto/declarative/qfxtext/tst_qfxtext.cpp b/tests/auto/declarative/qfxtext/tst_qfxtext.cpp
index 2448898..ee74040 100644
--- a/tests/auto/declarative/qfxtext/tst_qfxtext.cpp
+++ b/tests/auto/declarative/qfxtext/tst_qfxtext.cpp
@@ -134,7 +134,7 @@ void tst_qfxtext::width()
QmlComponent textComponent(&engine, "<Text text=\"\"/>");
QFxText *textObject = qobject_cast<QFxText*>(textComponent.create());
- QCOMPARE(textObject->width(), 0);
+ QCOMPARE(textObject->width(), 0.);
}
for (int i = 0; i < standard.size(); i++)
@@ -147,7 +147,7 @@ void tst_qfxtext::width()
QmlComponent textComponent(&engine, componentStr.toLatin1());
QFxText *textObject = qobject_cast<QFxText*>(textComponent.create());
- QCOMPARE(textObject->width(), metricWidth);
+ QCOMPARE(textObject->width(), qreal(metricWidth));
}
for (int i = 0; i < richText.size(); i++)
@@ -162,7 +162,7 @@ void tst_qfxtext::width()
QmlComponent textComponent(&engine, componentStr.toLatin1());
QFxText *textObject = qobject_cast<QFxText*>(textComponent.create());
- QCOMPARE(textObject->width(), documentWidth);
+ QCOMPARE(textObject->width(), qreal(documentWidth));
}
}
@@ -175,7 +175,7 @@ void tst_qfxtext::wrap()
QmlComponent textComponent(&engine, "<Text text=\"\" wrap=\"true\" width=\"300\"/>");
QFxText *textObject = qobject_cast<QFxText*>(textComponent.create());
- QCOMPARE(textObject->width(), 300);
+ QCOMPARE(textObject->width(), 300.);
}
for (int i = 0; i < standard.size(); i++)
@@ -184,7 +184,7 @@ void tst_qfxtext::wrap()
QmlComponent textComponent(&engine, componentStr.toLatin1());
QFxText *textObject = qobject_cast<QFxText*>(textComponent.create());
- QCOMPARE(textObject->width(), 300);
+ QCOMPARE(textObject->width(), 300.);
}
for (int i = 0; i < richText.size(); i++)
@@ -193,7 +193,7 @@ void tst_qfxtext::wrap()
QmlComponent textComponent(&engine, componentStr.toLatin1());
QFxText *textObject = qobject_cast<QFxText*>(textComponent.create());
- QCOMPARE(textObject->width(), 300);
+ QCOMPARE(textObject->width(), 300.);
}
}
@@ -210,7 +210,7 @@ void tst_qfxtext::elide()
QmlComponent textComponent(&engine, ("<Text text=\"\" "+elide+" width=\"300\"/>").toLatin1());
QFxText *textObject = qobject_cast<QFxText*>(textComponent.create());
- QCOMPARE(textObject->width(), 300);
+ QCOMPARE(textObject->width(), 300.);
}
for (int i = 0; i < standard.size(); i++)
@@ -219,7 +219,7 @@ void tst_qfxtext::elide()
QmlComponent textComponent(&engine, componentStr.toLatin1());
QFxText *textObject = qobject_cast<QFxText*>(textComponent.create());
- QCOMPARE(textObject->width(), 300);
+ QCOMPARE(textObject->width(), 300.);
}
// richtext - does nothing
@@ -229,7 +229,7 @@ void tst_qfxtext::elide()
QmlComponent textComponent(&engine, componentStr.toLatin1());
QFxText *textObject = qobject_cast<QFxText*>(textComponent.create());
- QCOMPARE(textObject->width(), 300);
+ QCOMPARE(textObject->width(), 300.);
}
}
}