Commit 66344928 authored by David Faure's avatar David Faure
Browse files

Port to non-deprecated KWindowSystem::setMainWindow overload

parent cd448b07
......@@ -87,7 +87,8 @@ int main(int argc, char* argv[])
WId winId = attachHandle.mid(x11Prefix.length()).toLong(&ok, 0);
if (ok) {
dialog.setModal(true);
KWindowSystem::setMainWindow(&dialog, winId);
dialog.setAttribute(Qt::WA_NativeWindow, true);
KWindowSystem::setMainWindow(dialog.windowHandle(), winId);
}
}
}
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment