Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
PIM
KMail
Commits
287547f6
Commit
287547f6
authored
May 08, 2021
by
Laurent Montel
😁
Browse files
Make compile without deprecated method (KF5.83)
parent
c9d9d5ce
Changes
1
Hide whitespace changes
Inline
Side-by-side
ktnef/src/ktnefmain.cpp
View file @
287547f6
...
...
@@ -38,6 +38,7 @@
#include <QStandardPaths>
#include <QTemporaryFile>
#include <QUrl>
#include <kio_version.h>
#include <KConfigGroup>
#include <KRecentFilesAction>
...
...
@@ -549,8 +550,11 @@ void KTNEFMain::createOpenWithMenu(QMenu *topMenu)
}
KTNEFAttach
*
attach
=
mView
->
getSelection
().
at
(
0
);
QString
mimename
(
attach
->
mimeTag
());
#if KIO_VERSION < QT_VERSION_CHECK(5, 83, 0)
const
KService
::
List
offers
=
KFileItemActions
::
associatedApplications
(
QStringList
()
<<
mimename
,
QString
());
#else
const
KService
::
List
offers
=
KFileItemActions
::
associatedApplications
(
QStringList
()
<<
mimename
);
#endif
if
(
!
offers
.
isEmpty
())
{
QMenu
*
menu
=
topMenu
;
auto
actionGroup
=
new
QActionGroup
(
menu
);
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment