Make scriptengine build without kde4support
This commit is contained in:
parent
42e0eb7f7a
commit
e6ac1d4fc8
@ -30,7 +30,6 @@ set_target_properties(plasma_appletscript_declarative PROPERTIES PREFIX "")
|
||||
target_link_libraries(plasma_appletscript_declarative
|
||||
KF5::KIOCore
|
||||
KF5::KIOWidgets
|
||||
${KDE4Support_LIBRARIES}
|
||||
${KDE4Attic_LIBRARIES}
|
||||
${QT_QTSCRIPT_LIBRARY}
|
||||
${Qt5Quick_LIBRARIES}
|
||||
|
@ -32,12 +32,11 @@
|
||||
#include <QSignalMapper>
|
||||
#include <QTimer>
|
||||
|
||||
#include <KActionCollection>
|
||||
#include <kactioncollection.h>
|
||||
#include <QDebug>
|
||||
#include <KGlobalSettings>
|
||||
#include <KService>
|
||||
#include <KServiceTypeTrader>
|
||||
#include <KLocalizedString>
|
||||
#include <kservice.h>
|
||||
#include <kservicetypetrader.h>
|
||||
#include <klocalizedstring.h>
|
||||
|
||||
#include <Plasma/Plasma>
|
||||
#include <Plasma/Applet>
|
||||
|
@ -28,13 +28,13 @@
|
||||
#include <QQmlProperty>
|
||||
#include <QMimeData>
|
||||
|
||||
#include <KActionCollection>
|
||||
#include <KAuthorized>
|
||||
#include <kactioncollection.h>
|
||||
#include <kauthorized.h>
|
||||
#include <QDebug>
|
||||
#include <KLocalizedString>
|
||||
#include <klocalizedstring.h>
|
||||
#include <kurlmimedata.h>
|
||||
#include <KMimeType>
|
||||
#include <KTemporaryFile>
|
||||
#include <QMimeDatabase>
|
||||
#include <ktemporaryfile.h>
|
||||
|
||||
#ifndef PLASMA_NO_KIO
|
||||
#include "kio/jobclasses.h" // for KIO::JobFlags
|
||||
@ -239,8 +239,9 @@ void ContainmentInterface::processMimeData(QMimeData *mimeData, int x, int y)
|
||||
foreach (const QUrl &url, urls) {
|
||||
|
||||
#ifndef PLASMA_NO_KIO
|
||||
KMimeType::Ptr mime = KMimeType::findByUrl(url);
|
||||
QString mimeName = mime->name();
|
||||
QMimeDatabase db;
|
||||
const QMimeType &mime = db.mimeTypeForUrl(url);
|
||||
QString mimeName = mime.name();
|
||||
QVariantList args;
|
||||
args << url.url();
|
||||
qDebug() << "can decode" << mimeName << args;
|
||||
|
@ -28,11 +28,10 @@
|
||||
#include <QUiLoader>
|
||||
#include <QWidget>
|
||||
|
||||
#include <KConfigGroup>
|
||||
#include <kconfiggroup.h>
|
||||
#include <QDebug>
|
||||
#include <KGlobal>
|
||||
#include <KLocale>
|
||||
#include <KGlobalSettings>
|
||||
#include <kglobal.h>
|
||||
#include <klocale.h>
|
||||
#include <klocalizedstring.h>
|
||||
|
||||
#include <Plasma/Applet>
|
||||
|
@ -23,9 +23,9 @@
|
||||
#include <kdeclarative/configpropertymap.h>
|
||||
#include <kdeclarative/qmlobject.h>
|
||||
|
||||
#include <KActionCollection>
|
||||
#include <KServiceTypeTrader>
|
||||
#include <KDesktopFile>
|
||||
#include <kactioncollection.h>
|
||||
#include <kservicetypetrader.h>
|
||||
#include <kdesktopfile.h>
|
||||
|
||||
#include <QDebug>
|
||||
#include <QQmlExpression>
|
||||
|
Loading…
Reference in New Issue
Block a user