qtquick: Fix close() not hidding the widget
QtQuick will emit a "visibleChanged(true)" when setting nullptr, which we need to inhibit so it behaves like QtWidgets.
This commit is contained in:
@@ -776,7 +776,7 @@ void DockWidgetBase::onCloseEvent(QCloseEvent *e)
|
||||
{
|
||||
e->accept(); // By default we accept, means DockWidget closes
|
||||
if (d->widget)
|
||||
qApp->sendEvent(d->widget, e); // Give a chancefor the widget to ignore
|
||||
qApp->sendEvent(d->widget, e); // Give a chance for the widget to ignore
|
||||
|
||||
if (e->isAccepted())
|
||||
d->close();
|
||||
|
||||
Reference in New Issue
Block a user