tests: Make createMainWindow return MainWindowBase
Instead of QMainWindow, so it works with qml too
This commit is contained in:
@@ -89,12 +89,12 @@ struct EnsureTopLevelsDeleted
|
||||
bool shouldBlacklistWarning(const QString &msg, const QString &category = {});
|
||||
|
||||
#ifdef KDDOCKWIDGETS_QTWIDGETS
|
||||
std::unique_ptr<KDDockWidgets::MainWindow> createMainWindow(QSize sz = {600, 600},
|
||||
std::unique_ptr<MainWindowBase> createMainWindow(QSize sz = {600, 600},
|
||||
KDDockWidgets::MainWindowOptions options = MainWindowOption_HasCentralFrame, const QString &name = {});
|
||||
|
||||
|
||||
|
||||
std::unique_ptr<KDDockWidgets::MainWindow> createMainWindow(QVector<DockDescriptor> &docks);
|
||||
std::unique_ptr<KDDockWidgets::MainWindowBase> createMainWindow(QVector<DockDescriptor> &docks);
|
||||
#endif
|
||||
KDDockWidgets::DockWidgetBase *createDockWidget(const QString &name, QWidgetOrQuick *w,
|
||||
DockWidgetBase::Options options = {}, bool show = true,
|
||||
|
||||
Reference in New Issue
Block a user