From 4e2f3dcffe2c2388e9d2d63e626ee6d03abce953 Mon Sep 17 00:00:00 2001 From: Peter Penz Date: Mon, 28 May 2012 23:10:20 +0200 Subject: Implement dropping of items into the Places Panel Some polishing regarding the icons and group-alignment must still be done, but at least the basic functionality is back again. --- 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 95a994e76..b850f356f 100644 --- a/src/panels/places/placesitemmodel.h +++ b/src/panels/places/placesitemmodel.h @@ -199,6 +199,12 @@ private: QString internalMimeType() const; + /** + * @return Adjusted drop index which assures that the item is aligned + * into the same group as specified by PlacesItem::groupType(). + */ + int groupedDropIndex(int index, const PlacesItem* item) const; + /** * @return True if the bookmarks have the same identifiers. The identifier * is the unique "ID"-property in case if no UDI is set, otherwise -- cgit v1.3.1