summaryrefslogtreecommitdiffstats
path: root/tests/auto/qgraphicseffectsource
diff options
context:
space:
mode:
authorThierry Bastian <thierry.bastian@nokia.com>2010-08-19 18:09:47 +0200
committerThierry Bastian <thierry.bastian@nokia.com>2010-08-19 18:16:04 +0200
commit9b4c6ab8e27873c133f16ea655d7220b1ba348cf (patch)
treee780faebefb255c6779df4a11e07c4dc59b49a38 /tests/auto/qgraphicseffectsource
parent5a3deba02336cb1798a11f1b24f1460a83df5c3e (diff)
Fixed autotest compilation issue on solaris
Task-number: QTBUG-12991
Diffstat (limited to 'tests/auto/qgraphicseffectsource')
-rw-r--r--tests/auto/qgraphicseffectsource/tst_qgraphicseffectsource.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/tests/auto/qgraphicseffectsource/tst_qgraphicseffectsource.cpp b/tests/auto/qgraphicseffectsource/tst_qgraphicseffectsource.cpp
index 49a76fa4d3..af23b4633e 100644
--- a/tests/auto/qgraphicseffectsource/tst_qgraphicseffectsource.cpp
+++ b/tests/auto/qgraphicseffectsource/tst_qgraphicseffectsource.cpp
@@ -209,7 +209,7 @@ void tst_QGraphicsEffectSource::init()
void tst_QGraphicsEffectSource::graphicsItem()
{
QVERIFY(effect->source());
- QCOMPARE(effect->source()->graphicsItem(), item);
+ QCOMPARE(effect->source()->graphicsItem(), (const QGraphicsItem*)item);
}
void tst_QGraphicsEffectSource::styleOption()
@@ -237,7 +237,7 @@ void tst_QGraphicsEffectSource::isPixmap()
CustomEffect *anotherEffect = new CustomEffect;
pixmapItem->setGraphicsEffect(anotherEffect);
QVERIFY(anotherEffect->source());
- QCOMPARE(anotherEffect->source()->graphicsItem(), static_cast<QGraphicsItem *>(pixmapItem));
+ QCOMPARE(anotherEffect->source()->graphicsItem(), static_cast<const QGraphicsItem *>(pixmapItem));
QVERIFY(anotherEffect->source()->isPixmap());
delete pixmapItem;
}