Use QUrl instead of KUrl in fileitemactionplugin
Again, straight forward port, simple replace works.
This commit is contained in:
parent
473a34b76f
commit
53830bfa68
1 changed files with 2 additions and 2 deletions
|
@ -36,7 +36,7 @@
|
||||||
#include <KDebug>
|
#include <KDebug>
|
||||||
#include <KProcess>
|
#include <KProcess>
|
||||||
#include <KLocalizedString>
|
#include <KLocalizedString>
|
||||||
#include <KUrl>
|
#include <QUrl>
|
||||||
|
|
||||||
K_PLUGIN_FACTORY(SendFileItemActionFactory, registerPlugin<SendFileItemAction>();)
|
K_PLUGIN_FACTORY(SendFileItemActionFactory, registerPlugin<SendFileItemAction>();)
|
||||||
K_EXPORT_PLUGIN(SendFileItemActionFactory("SendFileItemAction", "kdeconnect-filetiemaction"))
|
K_EXPORT_PLUGIN(SendFileItemActionFactory("SendFileItemAction", "kdeconnect-filetiemaction"))
|
||||||
|
@ -80,7 +80,7 @@ QList<QAction*> SendFileItemAction::actions(const KFileItemListProperties& fileI
|
||||||
|
|
||||||
void SendFileItemAction::sendFile()
|
void SendFileItemAction::sendFile()
|
||||||
{
|
{
|
||||||
QList<QUrl> urls = sender()->property("urls").value<KUrl::List>();
|
QList<QUrl> urls = sender()->property("urls").value<QList<QUrl>>();
|
||||||
foreach(const QUrl& url, urls) {
|
foreach(const QUrl& url, urls) {
|
||||||
QDBusMessage msg = QDBusMessage::createMethodCall("org.kde.kdeconnect", "/modules/kdeconnect/devices/"+sender()->property("id").toString()+"/share", "org.kde.kdeconnect.device.share", "shareUrl");
|
QDBusMessage msg = QDBusMessage::createMethodCall("org.kde.kdeconnect", "/modules/kdeconnect/devices/"+sender()->property("id").toString()+"/share", "org.kde.kdeconnect.device.share", "shareUrl");
|
||||||
msg.setArguments(QVariantList() << url.toString());
|
msg.setArguments(QVariantList() << url.toString());
|
||||||
|
|
Loading…
Reference in a new issue