diff options
| author | David Faure <[email protected]> | 2014-12-26 08:57:42 +0100 |
|---|---|---|
| committer | David Faure <[email protected]> | 2015-01-05 09:07:10 +0100 |
| commit | 7bd5bec21977c733dd3e1fc70f5afd66dda3ab97 (patch) | |
| tree | c05c3ecc54e25320dbd609ae65b6afdc23d07c0d /src/views/draganddrophelper.h | |
| parent | 119f7a3fce241efddc7e7f9eef8e729cf9ad35c2 (diff) | |
Dolphin: port from KonqOperations::doDrop to the new KIO::DropJob
REVIEW: 121678
Diffstat (limited to 'src/views/draganddrophelper.h')
| -rw-r--r-- | src/views/draganddrophelper.h | 21 |
1 files changed, 7 insertions, 14 deletions
diff --git a/src/views/draganddrophelper.h b/src/views/draganddrophelper.h index c4ae974b5..85268eb4f 100644 --- a/src/views/draganddrophelper.h +++ b/src/views/draganddrophelper.h @@ -25,10 +25,10 @@ #include <QString> -class KFileItem; class QUrl; class QDropEvent; -class KonqOperations; +class QWidget; +namespace KIO { class DropJob; } class LIBDOLPHINPRIVATE_EXPORT DragAndDropHelper { @@ -39,22 +39,15 @@ public: * offered to the user. The drag destination must represent a directory or * a desktop-file, otherwise the dropping gets ignored. * - * @param destItem Item of the destination. Can be 0 (KFileItem::isNull()) if - * no file-item is available for the destination. In this case - * destUrl is used as fallback. For performance reasons it is - * recommended to pass a file-item if available. * @param destUrl URL of the item destination. Is used only if destItem::isNull() * is true. * @param event Drop event. - * @param error Error message intended to be shown for users if dropping is not - * possible. If an empty string is returned, the dropping has been - * successful. - * @return KonqOperations pointer + * @param window Associated widget. + * @return KIO::DropJob pointer */ - static KonqOperations* dropUrls(const KFileItem& destItem, - const QUrl& destUrl, - QDropEvent* event, - QString& error); + static KIO::DropJob* dropUrls(const QUrl& destUrl, + QDropEvent* event, + QWidget *window); }; #endif |
