qtquick: Fix dragged window being behind in Z order

For QtWidgets, when we raise something that's not a top-level
it won't raise. So do the same thing for QtQuick
This commit is contained in:
Sergio Martins
2020-11-28 18:28:43 +00:00
parent e0ee7d14b0
commit 12576970c6

View File

@@ -136,8 +136,10 @@ void QWidgetAdapter::geometryChanged(const QRectF &newGeometry, const QRectF &ol
void QWidgetAdapter::raise()
{
if (QWindow *w = windowHandle())
w->raise();
if (isTopLevel()) {
if (QWindow *w = windowHandle())
w->raise();
}
}
QSize QWidgetAdapter::minimumSize() const