qtquick: Fix more tests

This commit is contained in:
Sergio Martins
2020-11-25 16:28:54 +00:00
parent a3414fd92b
commit d2c55a67df
2 changed files with 3 additions and 1 deletions

View File

@@ -3539,7 +3539,6 @@ void TestDocks::tst_restoreCrash()
}
// Restore
qDebug() << Q_FUNC_INFO << "Restoring";
auto m = createMainWindow({}, {}, "tst_restoreCrash");
auto layout = m->multiSplitter();
auto dock1 = createDockWidget("dock1", new QPushButton("one"));

View File

@@ -44,6 +44,9 @@ KDDockWidgets::Tests::createMainWindow(QSize sz, KDDockWidgets::MainWindowOption
static int count = 0;
count++;
if (!sz.isValid())
sz = QSize(1000, 1000);
const QString mainWindowName = name.isEmpty() ? QStringLiteral("MyMainWindow%1").arg(count)
: name;