summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--tests/auto/declarative/qdeclarativeviewer/tst_qdeclarativeviewer.cpp16
1 files changed, 8 insertions, 8 deletions
diff --git a/tests/auto/declarative/qdeclarativeviewer/tst_qdeclarativeviewer.cpp b/tests/auto/declarative/qdeclarativeviewer/tst_qdeclarativeviewer.cpp
index ef99173..c249414 100644
--- a/tests/auto/declarative/qdeclarativeviewer/tst_qdeclarativeviewer.cpp
+++ b/tests/auto/declarative/qdeclarativeviewer/tst_qdeclarativeviewer.cpp
@@ -255,21 +255,21 @@ void tst_QDeclarativeViewer::resizing()
viewer->setSizeToView(false);
// size view to root object
- rootItem->setWidth(100);
+ rootItem->setWidth(150);
rootItem->setHeight(200);
qApp->processEvents();
- QCOMPARE(rootItem->width(), 100.0);
+ QCOMPARE(rootItem->width(), 150.0);
QCOMPARE(rootItem->height(), 200.0);
- QCOMPARE(viewer->view()->size(), QSize(100, 200));
+ QCOMPARE(viewer->view()->size(), QSize(150, 200));
QCOMPARE(viewer->view()->initialSize(), QSize(200, 300));
- QCOMPARE(viewer->view()->sceneRect().size(), QSizeF(100, 200));
- QCOMPARE(viewer->size(), QSize(100, 200+viewer->menuBar()->height()));
+ QCOMPARE(viewer->view()->sceneRect().size(), QSizeF(150, 200));
+ QCOMPARE(viewer->size(), QSize(150, 200+viewer->menuBar()->height()));
QCOMPARE(viewer->size(), viewer->sizeHint());
// do not size root object to view
- viewer->resize(QSize(150,250));
- QCOMPARE(rootItem->width(), 100.0);
+ viewer->resize(QSize(180,250));
+ QCOMPARE(rootItem->width(), 150.0);
QCOMPARE(rootItem->height(), 200.0);
viewer->setSizeToView(true);
@@ -287,7 +287,7 @@ void tst_QDeclarativeViewer::resizing()
QCOMPARE(viewer->size(), viewer->sizeHint());
// do not size view to root object
- rootItem->setWidth(100);
+ rootItem->setWidth(150);
rootItem->setHeight(200);
QTRY_COMPARE(viewer->size(), QSize(250, 350));
}