summaryrefslogtreecommitdiffstats
path: root/tests/auto/qgraphicslinearlayout
diff options
context:
space:
mode:
authorJanne Anttila <janne.anttila@digia.com>2009-09-25 10:00:16 (GMT)
committerJanne Anttila <janne.anttila@digia.com>2009-09-25 10:00:16 (GMT)
commite482169086f6a85603ca4650e42be543533c3b50 (patch)
tree72a4b6c6677e0162522e960e5ed25e57d345dab0 /tests/auto/qgraphicslinearlayout
parent392edcbe5be7415bb86e0df533377898a977d17f (diff)
downloadQt-e482169086f6a85603ca4650e42be543533c3b50.zip
Qt-e482169086f6a85603ca4650e42be543533c3b50.tar.gz
Qt-e482169086f6a85603ca4650e42be543533c3b50.tar.bz2
Fixed qgraphicslinearlayout autotest compilation for Symbian (Nokia X86).
Nokia X86 compiler does not resolve QCOMPARE corrctly for derived types, that's why we cast it explicitly. Reviewed-by: Janne Koskinen
Diffstat (limited to 'tests/auto/qgraphicslinearlayout')
-rw-r--r--tests/auto/qgraphicslinearlayout/tst_qgraphicslinearlayout.cpp8
1 files changed, 4 insertions, 4 deletions
diff --git a/tests/auto/qgraphicslinearlayout/tst_qgraphicslinearlayout.cpp b/tests/auto/qgraphicslinearlayout/tst_qgraphicslinearlayout.cpp
index a5d79de..32054db 100644
--- a/tests/auto/qgraphicslinearlayout/tst_qgraphicslinearlayout.cpp
+++ b/tests/auto/qgraphicslinearlayout/tst_qgraphicslinearlayout.cpp
@@ -708,10 +708,10 @@ void tst_QGraphicsLinearLayout::itemAt_visualOrder()
QGraphicsWidget *w2 = new QGraphicsWidget;
l->insertItem(2, w2);
- QCOMPARE(l->itemAt(0), w0);
- QCOMPARE(l->itemAt(1), w1);
- QCOMPARE(l->itemAt(2), w2);
- QCOMPARE(l->itemAt(3), w3);
+ QCOMPARE(l->itemAt(0), static_cast<QGraphicsLayoutItem*>(w0));
+ QCOMPARE(l->itemAt(1), static_cast<QGraphicsLayoutItem*>(w1));
+ QCOMPARE(l->itemAt(2), static_cast<QGraphicsLayoutItem*>(w2));
+ QCOMPARE(l->itemAt(3), static_cast<QGraphicsLayoutItem*>(w3));
}
void tst_QGraphicsLinearLayout::orientation_data()