┌   ┐
54
└   ┘

summaryrefslogtreecommitdiff
path: root/src/views/draganddrophelper.h
diff options
context:
space:
mode:
authorPeter Penz <[email protected]>2012-02-08 15:16:35 +0100
committerPeter Penz <[email protected]>2012-02-08 17:48:28 +0100
commit3c83d8f14defbec5f09aeeb78de3885535d2dc71 (patch)
treea77b5eb1bc146c2ad486c57be6624c7cc1a7d617 /src/views/draganddrophelper.h
parenta3a19f4a06b41ac4d89fb1024a9e5d5cb420691d (diff)
Drag and drop: Adjust destination if the item is no directory or desktop-file
The URL of the view should be used as destination target if a dropping is not done above a directory or desktop-file. BUG: 293511 FIXED-IN: 4.8.1
Diffstat (limited to 'src/views/draganddrophelper.h')
-rw-r--r--src/views/draganddrophelper.h14
1 files changed, 8 insertions, 6 deletions
diff --git a/src/views/draganddrophelper.h b/src/views/draganddrophelper.h
index 8838648a0..ac16f7cf2 100644
--- a/src/views/draganddrophelper.h
+++ b/src/views/draganddrophelper.h
@@ -34,10 +34,11 @@ class LIBDOLPHINPRIVATE_EXPORT DragAndDropHelper
{
public:
/**
- * Handles the dropping of URLs to the given
- * destination. A context menu with the options
- * 'Move Here', 'Copy Here', 'Link Here' and
- * 'Cancel' is offered to the user.
+ * Handles the dropping of URLs to the given destination. A context menu
+ * with the options 'Move Here', 'Copy Here', 'Link Here' and 'Cancel' is
+ * 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
@@ -45,8 +46,9 @@ public:
* @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.
+ * @return Error message intended to be shown for users if dropping is not
+ * possible. If an empty string is returned, the dropping has been
+ * successful.
*/
static QString dropUrls(const KFileItem& destItem,
const KUrl& destUrl,