From 647e59fdb1b56ee8da3821ad0cab8a31727fc8eb Mon Sep 17 00:00:00 2001 From: Jason McDonald Date: Tue, 1 Nov 2011 15:33:12 +1000 Subject: [PATCH] Remove disabled code from qgridlayout autotest The removed code was already disabled when it was first added in June 2006, and is based on assumptions that no longer hold true. Change-Id: Id7941d46e2a993aac422554dcc5540eb64eac492 Reviewed-by: Rohan McGovern --- .../widgets/kernel/qgridlayout/tst_qgridlayout.cpp | 10 ---------- 1 file changed, 10 deletions(-) diff --git a/tests/auto/widgets/kernel/qgridlayout/tst_qgridlayout.cpp b/tests/auto/widgets/kernel/qgridlayout/tst_qgridlayout.cpp index 4f0630e80f..9aed5438a2 100644 --- a/tests/auto/widgets/kernel/qgridlayout/tst_qgridlayout.cpp +++ b/tests/auto/widgets/kernel/qgridlayout/tst_qgridlayout.cpp @@ -458,19 +458,9 @@ void tst_QGridLayout::spacingAndSpacers() rightChild.show(); -#if 0 - leftChild.setMaximumWidth(200); - rightChild.setMaximumWidth(200); - - QApplication::sendPostedEvents(0, 0); - QCOMPARE(widget.maximumWidth(), leftChild.maximumWidth() + rightChild.maximumWidth()); -#endif - layout.removeWidget(&rightChild); QApplication::sendPostedEvents(0, 0); QCOMPARE(widget.sizeHint(), expectedSizeHint); - - }