diff --git a/fileitemactionplugin/CMakeLists.txt b/fileitemactionplugin/CMakeLists.txt index 53c84d34c..3df94ad6d 100644 --- a/fileitemactionplugin/CMakeLists.txt +++ b/fileitemactionplugin/CMakeLists.txt @@ -2,6 +2,6 @@ add_definitions(-DTRANSLATION_DOMAIN="kdeconnect-fileitemaction") include_directories(${CMAKE_SOURCE_DIR}) add_library(kdeconnectfiletiemaction MODULE sendfileitemaction.cpp) -target_link_libraries(kdeconnectfiletiemaction KF5::KIOWidgets KF5::I18n KF5::KDELibs4Support kdeconnectinterfaces) +target_link_libraries(kdeconnectfiletiemaction KF5::KIOWidgets KF5::I18n kdeconnectinterfaces) install(TARGETS kdeconnectfiletiemaction DESTINATION ${PLUGIN_INSTALL_DIR}) install(FILES kdeconnectsendfile.desktop DESTINATION ${SERVICES_INSTALL_DIR}) diff --git a/fileitemactionplugin/sendfileitemaction.cpp b/fileitemactionplugin/sendfileitemaction.cpp index 87221564f..c959b2f2d 100644 --- a/fileitemactionplugin/sendfileitemaction.cpp +++ b/fileitemactionplugin/sendfileitemaction.cpp @@ -41,11 +41,11 @@ K_PLUGIN_FACTORY(SendFileItemActionFactory, registerPlugin() Q_LOGGING_CATEGORY(KDECONNECT_FILEITEMACTION, "kdeconnect.fileitemaction") -SendFileItemAction::SendFileItemAction(QObject* parent, const QVariantList& ): KFileItemActionPlugin(parent) +SendFileItemAction::SendFileItemAction(QObject* parent, const QVariantList& ): KAbstractFileItemActionPlugin(parent) { } -QList SendFileItemAction::actions(const KFileItemListProperties& fileItemInfos, QWidget* parentWidget) const +QList SendFileItemAction::actions(const KFileItemListProperties& fileItemInfos, QWidget* parentWidget) { DevicesModel m; diff --git a/fileitemactionplugin/sendfileitemaction.h b/fileitemactionplugin/sendfileitemaction.h index 07ee98535..21ad1fb8b 100644 --- a/fileitemactionplugin/sendfileitemaction.h +++ b/fileitemactionplugin/sendfileitemaction.h @@ -21,8 +21,8 @@ #ifndef SENDFILEITEMACTION_H #define SENDFILEITEMACTION_H -#include #include +#include #include class QAction; @@ -30,12 +30,12 @@ class KFileItemListProperties; class QWidget; Q_DECLARE_LOGGING_CATEGORY(KDECONNECT_FILEITEMACTION) -class SendFileItemAction : public KFileItemActionPlugin +class SendFileItemAction : public KAbstractFileItemActionPlugin { Q_OBJECT public: SendFileItemAction(QObject* parent, const QVariantList &args); - virtual QList< QAction* > actions(const KFileItemListProperties& fileItemInfos, QWidget* parentWidget) const; + virtual QList< QAction* > actions(const KFileItemListProperties& fileItemInfos, QWidget* parentWidget); private Q_SLOTS: void sendFile();