┌   ┐
54
└   ┘

summaryrefslogtreecommitdiff
path: root/src/kitemviews/kitemlistcontroller.h
diff options
context:
space:
mode:
authorPeter Penz <[email protected]>2011-08-24 21:28:46 +0200
committerPeter Penz <[email protected]>2011-08-24 21:31:19 +0200
commitbf20b404c820f00b6d75f0ad123b93cb45eb7487 (patch)
tree8da5450ca7a7a74afe8e73f41244b65621228893 /src/kitemviews/kitemlistcontroller.h
parent649cfb02af0a66ff86119f6be46088937e262c94 (diff)
Dragging and selection fixes
- Don't clear the selection on mouse-press events, do it (if allowed) in the mouse-release-event. Otherwise dragging of multiple selected items would not be possible. - Don't clear the selection when the context-menu gets opened by a right-click. - Fix issue that dragging is not possible after the first drop that has been canceled.
Diffstat (limited to 'src/kitemviews/kitemlistcontroller.h')
-rw-r--r--src/kitemviews/kitemlistcontroller.h4
1 files changed, 3 insertions, 1 deletions
diff --git a/src/kitemviews/kitemlistcontroller.h b/src/kitemviews/kitemlistcontroller.h
index 01d1b9408..134e11673 100644
--- a/src/kitemviews/kitemlistcontroller.h
+++ b/src/kitemviews/kitemlistcontroller.h
@@ -135,8 +135,10 @@ private slots:
private:
/**
* Creates a QDrag object to start a drag-operation.
+ * @return True if the QDrag object has been created. If false is returned
+ * there is no implementation available for KItemModelBase::createMimeData().
*/
- void startDragging();
+ bool startDragging();
private:
bool m_dragging;