diff options
author | Joona Petrell <joona.t.petrell@nokia.com> | 2010-05-05 04:57:53 (GMT) |
---|---|---|
committer | Joona Petrell <joona.t.petrell@nokia.com> | 2010-05-07 00:59:27 (GMT) |
commit | 7c945e152c9abd0478bed5a4d251012944d93b44 (patch) | |
tree | 4edc61eaf52e44485db237ead602f0871726c2d5 /tests/auto/declarative/qdeclarativeview | |
parent | 35e6100977e496a242c41f6f0fc66889e7cd49fc (diff) | |
download | Qt-7c945e152c9abd0478bed5a4d251012944d93b44.zip Qt-7c945e152c9abd0478bed5a4d251012944d93b44.tar.gz Qt-7c945e152c9abd0478bed5a4d251012944d93b44.tar.bz2 |
Resize qmlruntime window to new dimensions when orientation changes
Task-number:
Reviewed-by: Warwick Allison
Diffstat (limited to 'tests/auto/declarative/qdeclarativeview')
-rw-r--r-- | tests/auto/declarative/qdeclarativeview/tst_qdeclarativeview.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/tests/auto/declarative/qdeclarativeview/tst_qdeclarativeview.cpp b/tests/auto/declarative/qdeclarativeview/tst_qdeclarativeview.cpp index 1ed51c1..dd2f46e 100644 --- a/tests/auto/declarative/qdeclarativeview/tst_qdeclarativeview.cpp +++ b/tests/auto/declarative/qdeclarativeview/tst_qdeclarativeview.cpp @@ -147,7 +147,7 @@ void tst_QDeclarativeView::resizemodedeclarativeitem() declarativeItem->setHeight(80); QCOMPARE(canvas->width(), 80); QCOMPARE(canvas->height(), 100); - QCOMPARE(canvas->size(), canvas->sizeHint()); + QCOMPARE(QSize(declarativeItem->width(), declarativeItem->height()), canvas->sizeHint()); QCOMPARE(sceneResizedSpy2.count(), 2); // size update from view @@ -230,7 +230,7 @@ void tst_QDeclarativeView::resizemodegraphicswidget() canvas->setResizeMode(QDeclarativeView::SizeRootObjectToView); graphicsWidget->resize(QSizeF(60,80)); QCOMPARE(canvas->size(), QSize(80,100)); - QCOMPARE(canvas->size(), canvas->sizeHint()); + QCOMPARE(QSize(graphicsWidget->size().width(), graphicsWidget->size().height()), canvas->sizeHint()); QCOMPARE(sceneResizedSpy2.count(), 2); // size update from view |