Use QUrl instead of KUrl in fileitemactionplugin

Again, straight forward port, simple replace works.
This commit is contained in:
Àlex Fiestas 2014-09-21 22:22:47 +02:00
parent 473a34b76f
commit 53830bfa68

View file

@ -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());