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: build:neon-user-lts-deb:
image: kdeneon/plasma:user-lts image: kdeneon/plasma:user-lts
stage: build stage: build
......
// libraries // libraries
#include <KLocalizedString> #include <KLocalizedString>
#include <QDBusPendingCallWatcher>
// local // local
#include "RemoveJob.h" #include "RemoveJob.h"
......
// libraries // libraries
#include <QFile> #include <QFile>
#include <QDebug> #include <QDebug>
#include <QDBusPendingReply>
#include <KLocalizedString> #include <KLocalizedString>
#include <KNotification> #include <KNotification>
#include <QTimer> #include <QTimer>
......
// libraries // libraries
#include <QIcon> #include <QIcon>
#include <QAction> #include <QAction>
#include <QDBusPendingReply>
#include <KPluginFactory> #include <KPluginFactory>
#include <KPluginLoader> #include <KPluginLoader>
#include <KLocalizedString> #include <KLocalizedString>
......
...@@ -5,6 +5,7 @@ ...@@ -5,6 +5,7 @@
#include <QJsonDocument> #include <QJsonDocument>
#include <QDebug> #include <QDebug>
#include <KFileMetaData/Properties> #include <KFileMetaData/Properties>
#include <KF5/kconfig_version.h>
// local // local
#include "AppImageExtractor.h" #include "AppImageExtractor.h"
...@@ -47,15 +48,16 @@ void KFileMetaData::AppImageExtractor::extract(ExtractionResult* result) { ...@@ -47,15 +48,16 @@ void KFileMetaData::AppImageExtractor::extract(ExtractionResult* result) {
if (!nameValue.isEmpty()) if (!nameValue.isEmpty())
result->add(Property::Title, nameValue); 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(); QString summary = root.value("summary").toString();
if (!summary.isEmpty()) if (!summary.isEmpty())
result->add(Property::Description, summary); result->add(Property::Description, summary);
QString license = root.value("license").toString(); QString license = root.value("license").toString();
if (!license.isEmpty()) if (!license.isEmpty())
result->add(Property::License, license); result->add(Property::License, license);
#endif
QJsonValue links = root.value("links"); QJsonValue links = root.value("links");
QJsonObject linksOjbect = links.toObject();; 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