Port to non-deprecated KWindowSystem::setMainWindow overload

(cherry picked from commit 15a3d82589)
wilder-5.17
David Faure 6 years ago
parent e2cbf51aa5
commit 726262b9b4
  1. 3
      soliduiserver/soliduiserver.cpp

@ -155,7 +155,8 @@ void SolidUiServer::reparentDialog(QWidget *dialog, WId wId, const QString &appI
Q_UNUSED(appId);
// Code borrowed from kwalletd
KWindowSystem::setMainWindow(dialog, wId); // correct, set dialog parent
dialog->setAttribute(Qt::WA_NativeWindow, true);
KWindowSystem::setMainWindow(dialog->windowHandle(), wId); // correct, set dialog parent
#if HAVE_X11
if (modal) {

Loading…
Cancel
Save