summaryrefslogtreecommitdiffstats
path: root/tests/auto/declarative/qfxtextedit
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/qfxtextedit
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/qfxtextedit')
-rw-r--r--tests/auto/declarative/qfxtextedit/tst_qfxtextedit.cpp12
1 files changed, 6 insertions, 6 deletions
diff --git a/tests/auto/declarative/qfxtextedit/tst_qfxtextedit.cpp b/tests/auto/declarative/qfxtextedit/tst_qfxtextedit.cpp
index e988918..8baef3d 100644
--- a/tests/auto/declarative/qfxtextedit/tst_qfxtextedit.cpp
+++ b/tests/auto/declarative/qfxtextedit/tst_qfxtextedit.cpp
@@ -124,7 +124,7 @@ void tst_qfxtextedit::width()
QmlComponent texteditComponent(&engine, "<TextEdit text=\"\"/>");
QFxTextEdit *textEditObject = qobject_cast<QFxTextEdit*>(texteditComponent.create());
- QCOMPARE(textEditObject->width(), 0);
+ QCOMPARE(textEditObject->width(), 0.);
}
for (int i = 0; i < standard.size(); i++)
@@ -137,7 +137,7 @@ void tst_qfxtextedit::width()
QmlComponent texteditComponent(&engine, componentStr.toLatin1());
QFxTextEdit *textEditObject = qobject_cast<QFxTextEdit*>(texteditComponent.create());
- QCOMPARE(textEditObject->width(), metricWidth);
+ QCOMPARE(textEditObject->width(), qreal(metricWidth));
}
for (int i = 0; i < richText.size(); i++)
@@ -152,7 +152,7 @@ void tst_qfxtextedit::width()
QmlComponent texteditComponent(&engine, componentStr.toLatin1());
QFxTextEdit *textEditObject = qobject_cast<QFxTextEdit*>(texteditComponent.create());
- QCOMPARE(textEditObject->width(), documentWidth);
+ QCOMPARE(textEditObject->width(), qreal(documentWidth));
}
}
@@ -163,7 +163,7 @@ void tst_qfxtextedit::wrap()
QmlComponent texteditComponent(&engine, "<TextEdit text=\"\" wrap=\"true\" width=\"300\"/>");
QFxTextEdit *textEditObject = qobject_cast<QFxTextEdit*>(texteditComponent.create());
- QCOMPARE(textEditObject->width(), 300);
+ QCOMPARE(textEditObject->width(), 300.);
}
for (int i = 0; i < standard.size(); i++)
@@ -172,7 +172,7 @@ void tst_qfxtextedit::wrap()
QmlComponent texteditComponent(&engine, componentStr.toLatin1());
QFxTextEdit *textEditObject = qobject_cast<QFxTextEdit*>(texteditComponent.create());
- QCOMPARE(textEditObject->width(), 300);
+ QCOMPARE(textEditObject->width(), 300.);
}
for (int i = 0; i < richText.size(); i++)
@@ -181,7 +181,7 @@ void tst_qfxtextedit::wrap()
QmlComponent texteditComponent(&engine, componentStr.toLatin1());
QFxTextEdit *textEditObject = qobject_cast<QFxTextEdit*>(texteditComponent.create());
- QCOMPARE(textEditObject->width(), 300);
+ QCOMPARE(textEditObject->width(), 300.);
}
}