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 <rohan.mcgovern@nokia.com>
This commit is contained in:
Jason McDonald 2011-11-01 15:33:12 +10:00 committed by Qt by Nokia
parent a7b1f30d57
commit 647e59fdb1

View File

@ -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);
}