Changeset View
Changeset View
Standalone View
Standalone View
containments/desktop/plugins/folder/foldermodel.cpp
Show First 20 Lines • Show All 939 Lines • ▼ Show 20 Line(s) | 937 | if (mimeData->hasFormat(QStringLiteral("application/x-kde-ark-dndextract-service")) && | |||
---|---|---|---|---|---|
940 | const QString remoteDBusPath = mimeData->data(QStringLiteral("application/x-kde-ark-dndextract-path")); | 940 | const QString remoteDBusPath = mimeData->data(QStringLiteral("application/x-kde-ark-dndextract-path")); | ||
941 | 941 | | |||
942 | QDBusMessage message = | 942 | QDBusMessage message = | ||
943 | QDBusMessage::createMethodCall(remoteDBusClient, remoteDBusPath, | 943 | QDBusMessage::createMethodCall(remoteDBusClient, remoteDBusPath, | ||
944 | QStringLiteral("org.kde.ark.DndExtract"), | 944 | QStringLiteral("org.kde.ark.DndExtract"), | ||
945 | QStringLiteral("extractSelectedFilesTo")); | 945 | QStringLiteral("extractSelectedFilesTo")); | ||
946 | message.setArguments({dropTargetUrl.toDisplayString(QUrl::PreferLocalFile)}); | 946 | message.setArguments({dropTargetUrl.toDisplayString(QUrl::PreferLocalFile)}); | ||
947 | 947 | | |||
948 | QDBusConnection::sessionBus().call(message); | 948 | QDBusConnection::sessionBus().call(message, QDBus::NoBlock); | ||
949 | 949 | | |||
950 | return; | 950 | return; | ||
951 | } | 951 | } | ||
952 | 952 | | |||
953 | if (idx.isValid() && !(flags(idx) & Qt::ItemIsDropEnabled)) { | 953 | if (idx.isValid() && !(flags(idx) & Qt::ItemIsDropEnabled)) { | ||
954 | return; | 954 | return; | ||
955 | } | 955 | } | ||
956 | 956 | | |||
▲ Show 20 Lines • Show All 44 Lines • ▼ Show 20 Line(s) | 998 | if (mimeData->hasFormat(QStringLiteral("application/x-kde-ark-dndextract-service")) && | |||
1001 | const QString remoteDBusPath = mimeData->data(QStringLiteral("application/x-kde-ark-dndextract-path")); | 1001 | const QString remoteDBusPath = mimeData->data(QStringLiteral("application/x-kde-ark-dndextract-path")); | ||
1002 | 1002 | | |||
1003 | QDBusMessage message = | 1003 | QDBusMessage message = | ||
1004 | QDBusMessage::createMethodCall(remoteDBusClient, remoteDBusPath, | 1004 | QDBusMessage::createMethodCall(remoteDBusClient, remoteDBusPath, | ||
1005 | QStringLiteral("org.kde.ark.DndExtract"), | 1005 | QStringLiteral("org.kde.ark.DndExtract"), | ||
1006 | QStringLiteral("extractSelectedFilesTo")); | 1006 | QStringLiteral("extractSelectedFilesTo")); | ||
1007 | message.setArguments(QVariantList() << m_dirModel->dirLister()->url().adjusted(QUrl::PreferLocalFile).toString()); | 1007 | message.setArguments(QVariantList() << m_dirModel->dirLister()->url().adjusted(QUrl::PreferLocalFile).toString()); | ||
1008 | 1008 | | |||
1009 | QDBusConnection::sessionBus().call(message); | 1009 | QDBusConnection::sessionBus().call(message, QDBus::NoBlock); | ||
1010 | } else { | 1010 | } else { | ||
1011 | Qt::DropAction proposedAction((Qt::DropAction)dropEvent->property("proposedAction").toInt()); | 1011 | Qt::DropAction proposedAction((Qt::DropAction)dropEvent->property("proposedAction").toInt()); | ||
1012 | Qt::DropActions possibleActions(dropEvent->property("possibleActions").toInt()); | 1012 | Qt::DropActions possibleActions(dropEvent->property("possibleActions").toInt()); | ||
1013 | Qt::MouseButtons buttons(dropEvent->property("buttons").toInt()); | 1013 | Qt::MouseButtons buttons(dropEvent->property("buttons").toInt()); | ||
1014 | Qt::KeyboardModifiers modifiers(dropEvent->property("modifiers").toInt()); | 1014 | Qt::KeyboardModifiers modifiers(dropEvent->property("modifiers").toInt()); | ||
1015 | 1015 | | |||
1016 | QDropEvent ev(QPoint(), possibleActions, mimeData, buttons, modifiers); | 1016 | QDropEvent ev(QPoint(), possibleActions, mimeData, buttons, modifiers); | ||
1017 | ev.setDropAction(proposedAction); | 1017 | ev.setDropAction(proposedAction); | ||
▲ Show 20 Lines • Show All 684 Lines • Show Last 20 Lines |