Verified Commit ff5eb7fb authored by azubieta's avatar azubieta
Browse files

Remove unrequired headers

parent e174e158
Pipeline #617 passed with stage
in 1 minute and 39 seconds
## AppImage
build:neon-user-lts-deb:
image: kdeneon/plasma:user-lts
stage: build
......
// libraries
#include <KLocalizedString>
#include <QDBusPendingCallWatcher>
// local
#include "RemoveJob.h"
......
// libraries
#include <QFile>
#include <QDebug>
#include <QDBusPendingReply>
#include <KLocalizedString>
#include <KNotification>
#include <QTimer>
......
// libraries
#include <QIcon>
#include <QAction>
#include <QDBusPendingReply>
#include <KPluginFactory>
#include <KPluginLoader>
#include <KLocalizedString>
......
......@@ -5,6 +5,7 @@
#include <QJsonDocument>
#include <QDebug>
#include <KFileMetaData/Properties>
#include <KF5/kconfig_version.h>
// local
#include "AppImageExtractor.h"
......@@ -47,15 +48,16 @@ void KFileMetaData::AppImageExtractor::extract(ExtractionResult* result) {
if (!nameValue.isEmpty())
result->add(Property::Title, nameValue);
// Property::Description is not supported until KF5 5.53.0
// Property::Description and Property::License are not supported until KF5 5.53.0
#if (QT_VERSION_CHECK(KCONFIG_VERSION_MAJOR, KCONFIG_VERSION_MINOR, KCONFIG_VERSION_PATCH) >= QT_VERSION_CHECK(5, 53, 0))
QString summary = root.value("summary").toString();
if (!summary.isEmpty())
result->add(Property::Description, summary);
QString license = root.value("license").toString();
if (!license.isEmpty())
result->add(Property::License, license);
#endif
QJsonValue links = root.value("links");
QJsonObject linksOjbect = links.toObject();;
......
Supports Markdown
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