diff options
| author | Peter Penz <[email protected]> | 2012-05-28 23:10:20 +0200 |
|---|---|---|
| committer | Peter Penz <[email protected]> | 2012-05-28 23:11:52 +0200 |
| commit | 4e2f3dcffe2c2388e9d2d63e626ee6d03abce953 (patch) | |
| tree | 7249e8bfda0cbec3d913abfdefdf6deb93d9d134 /src/panels/places/placesitemmodel.h | |
| parent | 276100dcecf19b8037d4da37109c1f8fe6d85459 (diff) | |
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.
Diffstat (limited to 'src/panels/places/placesitemmodel.h')
| -rw-r--r-- | src/panels/places/placesitemmodel.h | 6 |
1 files changed, 6 insertions, 0 deletions
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 @@ -200,6 +200,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 * the UDI is used as identifier. |
