summaryrefslogtreecommitdiffstats
path: root/tests/auto/qgraphicsitem
diff options
context:
space:
mode:
authorJanne Anttila <janne.anttila@digia.com>2009-10-05 07:53:57 (GMT)
committerJanne Anttila <janne.anttila@digia.com>2009-10-05 07:57:39 (GMT)
commit7655e27047790d89f9af0132946ad5db5138e7bf (patch)
tree52a4b6162f3cdf01f57454a4221736d59b396d03 /tests/auto/qgraphicsitem
parent1aaa11708eb0f8281e6de2c4ea6f04e5d38813e0 (diff)
downloadQt-7655e27047790d89f9af0132946ad5db5138e7bf.zip
Qt-7655e27047790d89f9af0132946ad5db5138e7bf.tar.gz
Qt-7655e27047790d89f9af0132946ad5db5138e7bf.tar.bz2
Fixed tst_qgraphicsitem.cpp compilation for Nokia X86 compiler.
Nokia X86 compiler is not able to resolve correct templated qCompare functionfor derived types. So implicit casting does nto work corectly. I have tried to add template specilations for qCompare also, but then compiler complainf about unambiguous functions. The promlem for now is fixed by adding explicit cast to same type against which the comparuion is done. Reviewed-by: TrustMe
Diffstat (limited to 'tests/auto/qgraphicsitem')
-rw-r--r--tests/auto/qgraphicsitem/tst_qgraphicsitem.cpp6
1 files changed, 3 insertions, 3 deletions
diff --git a/tests/auto/qgraphicsitem/tst_qgraphicsitem.cpp b/tests/auto/qgraphicsitem/tst_qgraphicsitem.cpp
index 9545198..e2e8c5f 100644
--- a/tests/auto/qgraphicsitem/tst_qgraphicsitem.cpp
+++ b/tests/auto/qgraphicsitem/tst_qgraphicsitem.cpp
@@ -7631,7 +7631,7 @@ void tst_QGraphicsItem::hitTestGraphicsEffectItem()
QVERIFY(items.isEmpty());
items = scene.items(QPointF(80, 80));
QCOMPARE(items.size(), 1);
- QCOMPARE(items.at(0), static_cast<EventTester *>(item3));
+ QCOMPARE(items.at(0), static_cast<QGraphicsItem *>(item3));
item1->repaints = 0;
item2->repaints = 0;
@@ -7654,7 +7654,7 @@ void tst_QGraphicsItem::hitTestGraphicsEffectItem()
QVERIFY(items.isEmpty());
items = scene.items(QPointF(80, 80));
QCOMPARE(items.size(), 1);
- QCOMPARE(items.at(0), static_cast<EventTester *>(item3));
+ QCOMPARE(items.at(0), static_cast<QGraphicsItem *>(item3));
}
void tst_QGraphicsItem::focusProxy()
@@ -8384,7 +8384,7 @@ void tst_QGraphicsItem::ensureDirtySceneTransform()
QGraphicsView view(&scene);
view.show();
QTest::qWaitForWindowShown(&view);
- QTRY_COMPARE(QApplication::activeWindow(), &view);
+ QTRY_COMPARE(QApplication::activeWindow(), static_cast<QWidget *>(&view));
//We move the parent
parent->move();
Qt.git/plain/translations/assistant_uk.ts?h=v4.8.3&id=c251bc2a259f6ac2688f669bffd768fc546a45a1'>plain -rw-r--r--assistant_zh_CN.ts38643logstatsplain -rw-r--r--assistant_zh_TW.ts39474logstatsplain -rwxr-xr-xcheck-ts.pl3212logstatsplain -rw-r--r--check-ts.xq282logstatsplain -rw-r--r--designer_cs.ts201333logstatsplain -rw-r--r--designer_de.ts197363logstatsplain -rw-r--r--designer_fr.ts203461logstatsplain -rw-r--r--designer_hu.ts235372logstatsplain -rw-r--r--designer_ja.ts204293logstatsplain -rw-r--r--designer_ko.ts197184logstatsplain -rw-r--r--designer_pl.ts197486logstatsplain -rw-r--r--designer_ru.ts219018logstatsplain -rw-r--r--designer_sl.ts193336logstatsplain -rw-r--r--designer_uk.ts218790logstatsplain -rw-r--r--designer_zh_CN.ts277182logstatsplain -rw-r--r--designer_zh_TW.ts307186logstatsplain -rw-r--r--linguist_cs.ts96383logstatsplain -rw-r--r--linguist_de.ts84001logstatsplain -rw-r--r--linguist_fr.ts76508logstatsplain -rw-r--r--linguist_hu.ts76072logstatsplain -rw-r--r--linguist_ja.ts99142logstatsplain -rw-r--r--linguist_ko.ts93916logstatsplain -rw-r--r--linguist_pl.ts89314logstatsplain -rw-r--r--linguist_ru.ts108686logstatsplain -rw-r--r--linguist_sl.ts83458logstatsplain -rw-r--r--linguist_uk.ts109610logstatsplain -rw-r--r--linguist_zh_CN.ts103108logstatsplain -rw-r--r--linguist_zh_TW.ts112566logstatsplain -rw-r--r--polish.qph2892logstatsplain -rw-r--r--qt_ar.ts277307logstatsplain -rw-r--r--qt_cs.ts412754logstatsplain -rw-r--r--qt_da.ts272721logstatsplain -rw-r--r--qt_de.ts382913logstatsplain -rw-r--r--qt_es.ts285075logstatsplain -rw-r--r--qt_fa.ts399870logstatsplain -rw-r--r--qt_fr.ts428797logstatsplain -rw-r--r--qt_gl.ts389993logstatsplain -rw-r--r--qt_he.ts273947logstatsplain -rw-r--r--qt_help_cs.ts15805logstatsplain -rw-r--r--qt_help_da.ts14506logstatsplain -rw-r--r--qt_help_de.ts12763logstatsplain -rw-r--r--qt_help_fr.ts15579logstatsplain -rw-r--r--qt_help_gl.ts12552logstatsplain -rw-r--r--qt_help_hu.ts17756logstatsplain -rw-r--r--qt_help_ja.ts13049logstatsplain -rw-r--r--qt_help_ko.ts12930logstatsplain -rw-r--r--qt_help_pl.ts12516logstatsplain -rw-r--r--qt_help_ru.ts14494logstatsplain