qtquick: Implement Platform_qtquick::tests_createNonClosableView()
This commit is contained in:
@@ -99,8 +99,14 @@ View *Platform_qtquick::tests_createFocusableView(CreateViewOptions opts, View *
|
||||
|
||||
View *Platform_qtquick::tests_createNonClosableView(View *parent)
|
||||
{
|
||||
Q_UNUSED(parent);
|
||||
return nullptr;
|
||||
CreateViewOptions opts;
|
||||
opts.isVisible = true;
|
||||
auto view = tests_createView(opts, parent);
|
||||
view->closeRequested.connect([](QCloseEvent *ev) {
|
||||
ev->ignore();
|
||||
});
|
||||
|
||||
return view;
|
||||
}
|
||||
|
||||
Controllers::MainWindow *Platform_qtquick::createMainWindow(const QString &uniqueName,
|
||||
|
||||
@@ -57,6 +57,7 @@ Controllers::DockWidget *KDDockWidgets::Tests::createDockWidget(const QString &n
|
||||
bool show,
|
||||
const QString &affinityName)
|
||||
{
|
||||
Q_ASSERT(guest);
|
||||
guest->setFocusPolicy(Qt::StrongFocus);
|
||||
auto dock = new Controllers::DockWidget(name, options, layoutSaverOptions);
|
||||
dock->setAffinityName(affinityName);
|
||||
|
||||
Reference in New Issue
Block a user