diff options
author | Olivier Goffart <ogoffart@trolltech.com> | 2010-10-16 09:27:00 (GMT) |
---|---|---|
committer | Olivier Goffart <ogoffart@trolltech.com> | 2010-10-16 09:27:00 (GMT) |
commit | fa0b5ef33467868d895d925e34f539f28ddb2d8b (patch) | |
tree | eaa6a5de673891d79eab5974029f26676810ae38 /tests | |
parent | 77e78b8aa2b540bb7465b7ffde23eba4ef654028 (diff) | |
download | Qt-fa0b5ef33467868d895d925e34f539f28ddb2d8b.zip Qt-fa0b5ef33467868d895d925e34f539f28ddb2d8b.tar.gz Qt-fa0b5ef33467868d895d925e34f539f28ddb2d8b.tar.bz2 |
Revert "QWorkspace: fix hardcoded min size overwriting the real min size"
This reverts commit 9e378145294da33495d48b2c0742461ae6c2a3ba.
QWorkspace is obsolete. And it does not pass the tests.
TESTFUNCTION_FAIL tst_qaccessibility::workspaceTest (macx-g++_cocoa)
TESTFUNCTION_FAIL tst_qaccessibility::workspaceTest (macx-g++_cocoa_osx106)
Diffstat (limited to 'tests')
-rw-r--r-- | tests/auto/qworkspace/tst_qworkspace.cpp | 10 |
1 files changed, 0 insertions, 10 deletions
diff --git a/tests/auto/qworkspace/tst_qworkspace.cpp b/tests/auto/qworkspace/tst_qworkspace.cpp index 9039eb3..4cf76b5 100644 --- a/tests/auto/qworkspace/tst_qworkspace.cpp +++ b/tests/auto/qworkspace/tst_qworkspace.cpp @@ -44,7 +44,6 @@ #include <qapplication.h> #include <qmainwindow.h> #include <qmenubar.h> -#include <qlayout.h> #include <qworkspace.h> #if defined(QT3_SUPPORT) #include <q3popupmenu.h> @@ -592,25 +591,16 @@ void tst_QWorkspace::childSize() MyChild *child = new MyChild(&ws); child->show(); - ws.addWindow(child); QCOMPARE(child->size(), child->sizeHint()); delete child; child = new MyChild(&ws); child->setFixedSize(200, 200); child->show(); - ws.addWindow(child); QCOMPARE(child->size(), child->minimumSize()); - QCOMPARE(child->parentWidget()->metaObject()->className(), "QWorkspaceChild"); - QVERIFY(child->parentWidget()->width() >= 200); - // check that the minimum size is respected, using closestAcceptableSize - // like QSizeGrip does. - const QSize newSize = QLayout::closestAcceptableSize(child->parentWidget(), QSize(100, 100)); - QVERIFY(newSize.width() >= 200); delete child; child = new MyChild(&ws); - ws.addWindow(child); child->resize(150, 150); child->show(); QCOMPARE(child->size(), QSize(150,150)); |