diff options
author | Dominik Holland <dominik.holland@nokia.com> | 2010-07-23 07:29:12 (GMT) |
---|---|---|
committer | Harald Fernengel <harald.fernengel@nokia.com> | 2010-11-02 14:26:09 (GMT) |
commit | 4280dd6bf4831379eea17e145df1fabc6a9fb901 (patch) | |
tree | 7d95a22ea954b65b0d5f23f9023c3dfbf35b3588 /tests/auto/qlayout | |
parent | 8b68c73d1fe916fafa1e0aa0c59ba3131ebd77cc (diff) | |
download | Qt-4280dd6bf4831379eea17e145df1fabc6a9fb901.zip Qt-4280dd6bf4831379eea17e145df1fabc6a9fb901.tar.gz Qt-4280dd6bf4831379eea17e145df1fabc6a9fb901.tar.bz2 |
Fixed QLayout autotest to use a dummy toplevel widget.
Diffstat (limited to 'tests/auto/qlayout')
-rw-r--r-- | tests/auto/qlayout/tst_qlayout.cpp | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/tests/auto/qlayout/tst_qlayout.cpp b/tests/auto/qlayout/tst_qlayout.cpp index c6fe3f0..a974a42 100644 --- a/tests/auto/qlayout/tst_qlayout.cpp +++ b/tests/auto/qlayout/tst_qlayout.cpp @@ -133,12 +133,13 @@ void tst_QLayout::geometry() // For QWindowsStyle we know that QWidgetItem::geometry() and QWidget::geometry() // should be the same. QApplication::setStyle(new QWindowsStyle); - QWidget w; + QWidget topLevel; + QWidget w(&topLevel); QVBoxLayout layout(&w); SizeHinterFrame widget(QSize(100,100)); layout.addWidget(&widget); QLayoutItem *item = layout.itemAt(0); - w.show(); + topLevel.show(); QApplication::processEvents(); QCOMPARE(item->geometry().size(), QSize(100,100)); |