qtquick: Fix some cases where floating windows didn't have parent

Happened because floatingWindow->parentWidget() was null. On QtWidgets
this works because QWidget::parentWidget() will return the transient parent
without a problem.
This commit is contained in:
Sergio Martins
2020-11-19 17:47:02 +00:00
parent 0cf148b389
commit 864670b0a1
11 changed files with 73 additions and 48 deletions

View File

@@ -666,14 +666,12 @@ void DockWidgetBase::Private::onDockWidgetShown()
{
updateToggleAction();
updateFloatAction();
qCDebug(hiding) << Q_FUNC_INFO << "parent=" << q->parentWidget();
}
void DockWidgetBase::Private::onDockWidgetHidden()
{
updateToggleAction();
updateFloatAction();
qCDebug(hiding) << Q_FUNC_INFO << "parent=" << q->parentWidget();
}
void DockWidgetBase::Private::close()