┌   ┐
54
└   ┘

summaryrefslogtreecommitdiff
path: root/src/views/draganddrophelper.h
diff options
context:
space:
mode:
authorPeter Penz <[email protected]>2012-01-30 12:07:08 +0100
committerPeter Penz <[email protected]>2012-01-30 12:09:21 +0100
commit517743a1bf2fab754182b53ba180be4043ed2148 (patch)
treecfc9a68616a18473977768e07bc6689cdc71fa85 /src/views/draganddrophelper.h
parente778465bbccbb1646b118c9e13ac22dbadc2939b (diff)
Fix drag & drop issues with non-local URLs
BUG: 292821 BUG: 292355 FIXED-IN: 4.8.1
Diffstat (limited to 'src/views/draganddrophelper.h')
-rw-r--r--src/views/draganddrophelper.h11
1 files changed, 9 insertions, 2 deletions
diff --git a/src/views/draganddrophelper.h b/src/views/draganddrophelper.h
index 1998a85a0..8838648a0 100644
--- a/src/views/draganddrophelper.h
+++ b/src/views/draganddrophelper.h
@@ -38,12 +38,19 @@ public:
* destination. A context menu with the options
* 'Move Here', 'Copy Here', 'Link Here' and
* 'Cancel' is offered to the user.
- * @param destItem Item of the destination.
+ * @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.
* @return Error message if dropping is not possible. If an empty string
* is returned, the dropping has been successful.
*/
- static QString dropUrls(const KFileItem& destItem, QDropEvent* event);
+ static QString dropUrls(const KFileItem& destItem,
+ const KUrl& destUrl,
+ QDropEvent* event);
};
#endif