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:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user