Skip to content

Commit

Permalink
Update portals-qt.rst
Browse files Browse the repository at this point in the history
Replace deprecated KRun with OpenUrlJob
  • Loading branch information
nicolasfella authored and TingPing committed Oct 19, 2022
1 parent 26fa044 commit 51854b3
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion docs/portals-qt.rst
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ Qt and KDE libraries will transparently use portals for some functionality when
they detect that they are being used inside a Flatpak sandbox. Here are some
hints for what Qt or KDE applications should do to benefit from this.

- Use ``QDesktopServices::openUrl(const QUrl &url)`` or ``KIO::KRun`` to
- Use ``QDesktopServices::openUrl(const QUrl &url)`` or ``KIO::OpenUrlJob`` to
open URIs or send an email when using ``mailto`` URL
- Use ``QFileDialog`` class to open files and, as of Qt ``5.18.90``, directories. Avoid using
``QFileDialog::DontUseNativeDialog``. Note that portals cannot currently
Expand Down

0 comments on commit 51854b3

Please sign in to comment.