qtquick: Fix more tests
This commit is contained in:
@@ -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"));
|
||||
|
||||
@@ -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;
|
||||
|
||||
|
||||
Reference in New Issue
Block a user