summaryrefslogtreecommitdiffstats
path: root/tests/auto/qdockwidget/tst_qdockwidget.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'tests/auto/qdockwidget/tst_qdockwidget.cpp')
-rw-r--r--tests/auto/qdockwidget/tst_qdockwidget.cpp15
1 files changed, 15 insertions, 0 deletions
diff --git a/tests/auto/qdockwidget/tst_qdockwidget.cpp b/tests/auto/qdockwidget/tst_qdockwidget.cpp
index 3d294c0..af11133 100644
--- a/tests/auto/qdockwidget/tst_qdockwidget.cpp
+++ b/tests/auto/qdockwidget/tst_qdockwidget.cpp
@@ -90,6 +90,7 @@ private slots:
void task165177_deleteFocusWidget();
void task169808_setFloating();
void task237438_setFloatingCrash();
+ void task248604_infiniteResize();
};
// Testing get/set functions
@@ -783,5 +784,19 @@ void tst_QDockWidget::task237438_setFloatingCrash()
pqdwDock.show();
}
+void tst_QDockWidget::task248604_infiniteResize()
+{
+ QDockWidget d;
+ QTabWidget *t = new QTabWidget;
+ t->addTab(new QWidget, "Foo");
+ d.setWidget(t);
+ d.setContentsMargins(2, 2, 2, 2);
+ d.setMinimumSize(320, 240);
+ d.show();
+ QTest::qWait(400);
+ QCOMPARE(d.size(), QSize(320, 240));
+}
+
+
QTEST_MAIN(tst_QDockWidget)
#include "tst_qdockwidget.moc"