diff options
author | Julien Nabet <serval2412@yahoo.fr> | 2019-09-28 09:20:23 +0200 |
---|---|---|
committer | Julien Nabet <serval2412@yahoo.fr> | 2019-09-28 10:16:13 +0200 |
commit | 7d30fd55813a035a10715d92474df482b11782a7 (patch) | |
tree | c107584bc65fa7b4740f453e4f4fc6b6f839ae41 | |
parent | dd5947b852a2c84e6d35ca6d1e4cb0fd09a49b8d (diff) |
Revert "KWINDOWSYSTEM_DEPRECATED static void setMainWindow"
the function is only available from kwindowsystem 5.62, so more recent that our baseline.
This reverts commit 94e22f5a2fcc9f193ce0370805156ad5320d4141.
Change-Id: I6957a7d4438cd57c4a0eab29a9c615d45eaa2235
Reviewed-on: https://gerrit.libreoffice.org/79776
Reviewed-by: Michael Weghorn <m.weghorn@posteo.de>
Tested-by: Julien Nabet <serval2412@yahoo.fr>
-rw-r--r-- | vcl/unx/gtk3_kde5/kde5_filepicker.cxx | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/vcl/unx/gtk3_kde5/kde5_filepicker.cxx b/vcl/unx/gtk3_kde5/kde5_filepicker.cxx index 0138a9cbb5d6..a3c2ecf63483 100644 --- a/vcl/unx/gtk3_kde5/kde5_filepicker.cxx +++ b/vcl/unx/gtk3_kde5/kde5_filepicker.cxx @@ -268,8 +268,7 @@ bool KDE5FilePicker::eventFilter(QObject* o, QEvent* e) auto* w = static_cast<QWidget*>(o); if (!w->parentWidget() && w->isModal()) { - w->setAttribute(Qt::WA_NativeWindow, true); - KWindowSystem::setMainWindow(w->windowHandle(), _winId); + KWindowSystem::setMainWindow(w, _winId); if (auto* fileWidget = w->findChild<KFileWidget*>({}, Qt::FindDirectChildrenOnly)) { fileWidget->setCustomWidget(_extraControls); |