┌   ┐
54
└   ┘

summaryrefslogtreecommitdiff
path: root/src/kitemviews/kitemmodelbase.h
diff options
context:
space:
mode:
authorPeter Penz <[email protected]>2012-05-18 23:21:49 +0200
committerPeter Penz <[email protected]>2012-05-18 23:31:44 +0200
commite9d29bcf30ccbd7c76ba37ce9efcfac1649fc46e (patch)
tree954ea3c1e8f7204c5e51353f444333496988ae1e /src/kitemviews/kitemmodelbase.h
parentd9eab08fcb8bfc56470a7f418465607888b5f1ba (diff)
Enable basic drag and drop support for the Places Panel
The dropping has not been implemented yet, however in the context of this step the creating of the drag-pixmap is now forwarded to the item-widgets. This allows creating some optimized dragging-pixmaps e.g. for the details-view, where only the name and icon should be provided as drag-pixmap.
Diffstat (limited to 'src/kitemviews/kitemmodelbase.h')
-rw-r--r--src/kitemviews/kitemmodelbase.h3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/kitemviews/kitemmodelbase.h b/src/kitemviews/kitemmodelbase.h
index 52fcaee36..129524b31 100644
--- a/src/kitemviews/kitemmodelbase.h
+++ b/src/kitemviews/kitemmodelbase.h
@@ -154,7 +154,8 @@ public:
/**
* @return MIME-data for the items given by \a indexes. The default implementation
* returns 0. The ownership of the returned instance is in the hand of the
- * caller of this method.
+ * caller of this method. The method must be implemented if dragging of
+ * items should be possible.
*/
virtual QMimeData* createMimeData(const QSet<int>& indexes) const;