Commit 287547f6 authored by Laurent Montel's avatar Laurent Montel 😁
Browse files

Make compile without deprecated method (KF5.83)

parent c9d9d5ce
......@@ -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);
......
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