summaryrefslogtreecommitdiffstats
path: root/tests/auto/widgets/kernel
diff options
context:
space:
mode:
authorJason McDonald <jason.mcdonald@nokia.com>2011-11-01 15:52:34 +1000
committerQt by Nokia <qt-info@nokia.com>2011-11-02 05:44:20 +0100
commit82a4516c5d6d37993bf648fcbcb4d7d0486254bf (patch)
tree2b8e85a4af1aed3bc5d0889c20b189d4aeebd910 /tests/auto/widgets/kernel
parent647e59fdb1b56ee8da3821ad0cab8a31727fc8eb (diff)
Remove disabled code from QWidget autotest.
The removed code was already disabled when first committed in January 2009. Change-Id: I00a82f2e673fee76869cc76d756c36d081da2d2a Reviewed-by: Rohan McGovern <rohan.mcgovern@nokia.com>
Diffstat (limited to 'tests/auto/widgets/kernel')
-rw-r--r--tests/auto/widgets/kernel/qwidget/tst_qwidget.cpp11
1 files changed, 0 insertions, 11 deletions
diff --git a/tests/auto/widgets/kernel/qwidget/tst_qwidget.cpp b/tests/auto/widgets/kernel/qwidget/tst_qwidget.cpp
index d804b12e28..67df4df257 100644
--- a/tests/auto/widgets/kernel/qwidget/tst_qwidget.cpp
+++ b/tests/auto/widgets/kernel/qwidget/tst_qwidget.cpp
@@ -3894,17 +3894,6 @@ void tst_QWidget::setMaximumSize()
w.setMaximumSize(defaultSize + QSize(50, 50));
QCOMPARE(w.size(), defaultSize + QSize(50, 50));
QVERIFY(!w.testAttribute(Qt::WA_Resized));
-
-#if 0
- //we don't enforce maximum size on show, apparently
- QSize nonDefaultSize = defaultSize - QSize(5,5);
- w.setMaximumSize(nonDefaultSize);
- w.show();
- QTest::qWait(50);
- qDebug() << nonDefaultSize << w.size();
- QVERIFY(w.height() <= nonDefaultSize.height());
- QVERIFY(w.width() <= nonDefaultSize.width());
-#endif
}
void tst_QWidget::setFixedSize()