From e9d29bcf30ccbd7c76ba37ce9efcfac1649fc46e Mon Sep 17 00:00:00 2001 From: Peter Penz Date: Fri, 18 May 2012 23:21:49 +0200 Subject: 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. --- src/panels/places/placesitemmodel.h | 6 ++++++ 1 file changed, 6 insertions(+) (limited to 'src/panels/places/placesitemmodel.h') diff --git a/src/panels/places/placesitemmodel.h b/src/panels/places/placesitemmodel.h index 0f8f3025d..7225c04f4 100644 --- a/src/panels/places/placesitemmodel.h +++ b/src/panels/places/placesitemmodel.h @@ -105,6 +105,12 @@ public: void requestEject(int index); void requestTeardown(int index); + /** @reimp */ + virtual QMimeData* createMimeData(const QSet& indexes) const; + + /** @reimp */ + virtual bool supportsDropping(int index) const; + /** * @return Converts the URL, which contains "virtual" URLs for system-items like * "search:/documents" into a Nepomuk-Query-URL that will be handled by -- cgit v1.3.1