From bf20b404c820f00b6d75f0ad123b93cb45eb7487 Mon Sep 17 00:00:00 2001 From: Peter Penz Date: Wed, 24 Aug 2011 21:28:46 +0200 Subject: 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. --- src/kitemviews/kitemlistcontroller.h | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) (limited to 'src/kitemviews/kitemlistcontroller.h') 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; -- cgit v1.3.1