wayland qcompleter popup
This commit is contained in:
parent
818b32888a
commit
46016d0efe
|
@ -981,6 +981,16 @@ void QCompleterPrivate::showPopup(const QRect& rect)
|
|||
|
||||
if (!popup->isVisible())
|
||||
popup->show();
|
||||
#ifndef NO_FOR_WAYLAND
|
||||
QWindow *win = widget->windowHandle();
|
||||
if (!win) {
|
||||
QWidget *parentWidget = widget->nativeParentWidget();
|
||||
if (parentWidget)
|
||||
win = parentWidget->windowHandle();
|
||||
}
|
||||
if (win)
|
||||
popup->windowHandle()->setTransientParent(win);
|
||||
#endif
|
||||
}
|
||||
|
||||
#if QT_CONFIG(filesystemmodel)
|
||||
|
|
Loading…
Reference in New Issue