aboutsummaryrefslogtreecommitdiffstats
path: root/tests/auto/quick/qquickpainteditem
diff options
context:
space:
mode:
authorAlan Alpert <alan.alpert@nokia.com>2012-08-07 11:26:37 +1000
committerThe Qt Project <gerrit-noreply@qt-project.org>2012-10-16 07:24:06 +0200
commitf21e9ba6efa2b1c8169491db271f79b87b5b0ce4 (patch)
tree6eabf1ad37e12247f210e3fe77f64abf6255aa56 /tests/auto/quick/qquickpainteditem
parentcc39a7d7affe37741292989c634aec3f60660c0e (diff)
Remove interim compatibility measures
Also update some variables in qtdeclarative which failed to update rootItem->contentItem. Change-Id: Id34e29546a22a74a7ae2ad90ee3a8def6fc541d3 Reviewed-by: Alan Alpert <416365416c@gmail.com>
Diffstat (limited to 'tests/auto/quick/qquickpainteditem')
-rw-r--r--tests/auto/quick/qquickpainteditem/tst_qquickpainteditem.cpp16
1 files changed, 8 insertions, 8 deletions
diff --git a/tests/auto/quick/qquickpainteditem/tst_qquickpainteditem.cpp b/tests/auto/quick/qquickpainteditem/tst_qquickpainteditem.cpp
index c3bf77da29..03e4b4084c 100644
--- a/tests/auto/quick/qquickpainteditem/tst_qquickpainteditem.cpp
+++ b/tests/auto/quick/qquickpainteditem/tst_qquickpainteditem.cpp
@@ -110,7 +110,7 @@ void tst_QQuickPaintedItem::initTestCase()
void tst_QQuickPaintedItem::update()
{
TestPaintedItem item;
- item.setParentItem(window.rootItem());
+ item.setParentItem(window.contentItem());
QCOMPARE(hasDirtyContentFlag(&item), false);
item.update();
@@ -149,7 +149,7 @@ void tst_QQuickPaintedItem::opaquePainting()
{
TestPaintedItem item;
item.setSize(QSizeF(320, 240));
- item.setParentItem(window.rootItem());
+ item.setParentItem(window.contentItem());
QCOMPARE(item.opaquePainting(), false);
@@ -187,7 +187,7 @@ void tst_QQuickPaintedItem::antialiasing()
{
TestPaintedItem item;
item.setSize(QSizeF(320, 240));
- item.setParentItem(window.rootItem());
+ item.setParentItem(window.contentItem());
QCOMPARE(item.antialiasing(), false);
@@ -225,7 +225,7 @@ void tst_QQuickPaintedItem::mipmap()
{
TestPaintedItem item;
item.setSize(QSizeF(320, 240));
- item.setParentItem(window.rootItem());
+ item.setParentItem(window.contentItem());
QCOMPARE(item.mipmap(), false);
@@ -263,7 +263,7 @@ void tst_QQuickPaintedItem::performanceHints()
{
TestPaintedItem item;
item.setSize(QSizeF(320, 240));
- item.setParentItem(window.rootItem());
+ item.setParentItem(window.contentItem());
QCOMPARE(item.performanceHints(), QQuickPaintedItem::PerformanceHints());
@@ -332,7 +332,7 @@ void tst_QQuickPaintedItem::contentScale()
{
TestPaintedItem item;
item.setSize(QSizeF(320, 240));
- item.setParentItem(window.rootItem());
+ item.setParentItem(window.contentItem());
QSignalSpy spy(&item, SIGNAL(contentsScaleChanged()));
@@ -376,7 +376,7 @@ void tst_QQuickPaintedItem::contentsBoundingRect()
{
TestPaintedItem item;
item.setSize(QSizeF(320, 240));
- item.setParentItem(window.rootItem());
+ item.setParentItem(window.contentItem());
QCOMPARE(item.contentsBoundingRect(), QRectF(0, 0, 320, 240));
@@ -414,7 +414,7 @@ void tst_QQuickPaintedItem::fillColor()
{
TestPaintedItem item;
item.setSize(QSizeF(320, 240));
- item.setParentItem(window.rootItem());
+ item.setParentItem(window.contentItem());
QSignalSpy spy(&item, SIGNAL(fillColorChanged()));