Add test for #352

Commented out, since we can't use an XFAIL, as it crashes
This commit is contained in:
Sergio Martins
2023-03-14 23:00:54 +00:00
parent 1a46823b03
commit b6beb3d244

View File

@@ -5078,6 +5078,13 @@ void TestDocks::tst_mdi_mixed_with_docking()
mdiArea->addDockWidget(mdiWidget1, QPoint(10, 10));
mdiArea->addDockWidget(mdiWidget2, QPoint(50, 50));
// We don't support LayoutSaver with mdi yet, but it shouldn't crash
// so test it as well
LayoutSaver saver;
// saver.serializeLayout(); // Uncomment once #352 is fixed
Frame *frameMDI1 = mdiWidget1->d->frame();
Frame *frame1 = dock1->d->frame();
QVERIFY(!frame1->isMDI());