qml: Make FrameQuick have a model for the dock widgets

More versatil for QML
This commit is contained in:
Sergio Martins
2020-08-02 17:05:57 +01:00
parent 85b4fc3751
commit 3c841aa2a9
4 changed files with 162 additions and 42 deletions

View File

@@ -700,7 +700,7 @@ void DockWidgetBase::onClosed(QCloseEvent *e)
{
e->accept(); // By default we accept, means DockWidget closes
if (d->widget)
qApp->sendEvent(d->widget, e); // Give a change for the widget to ignore
qApp->sendEvent(d->widget, e); // Give a chancefor the widget to ignore
if (e->isAccepted())
d->close();