summaryrefslogtreecommitdiffstats
path: root/archivemodel.h
diff options
context:
space:
mode:
authorArno <am@disconnect.de>2013-06-02 00:43:09 +0200
committerArno <am@disconnect.de>2013-06-02 00:43:09 +0200
commit459f58c57bfa1021783134b11853e8e4140055f3 (patch)
tree48c8bebb968eac10ced310ec33e204b17dee32f8 /archivemodel.h
parent6fec376f7f44145efa509668927a0179c8ffa65e (diff)
downloadSheMov-459f58c57bfa1021783134b11853e8e4140055f3.tar.gz
SheMov-459f58c57bfa1021783134b11853e8e4140055f3.tar.bz2
SheMov-459f58c57bfa1021783134b11853e8e4140055f3.zip
Remember expanded Items
For the current SortOrder the expanded items are written to the config file and read on startup.
Diffstat (limited to 'archivemodel.h')
-rw-r--r--archivemodel.h2
1 files changed, 2 insertions, 0 deletions
diff --git a/archivemodel.h b/archivemodel.h
index c07fc7b..0f2eea7 100644
--- a/archivemodel.h
+++ b/archivemodel.h
@@ -29,6 +29,8 @@ class ArchiveModel : public SmTreeModel {
const QHash<QString, int> availableOrdersHash() const { return mAvailableOrders; }
ArchiveCollector *collector() { return mCollector; }
virtual QVariant data(const QModelIndex &index, int role) const;
+ QStringList indexToPath(const QModelIndex &idx) const;
+ QModelIndexList pathToIndex(const QStringList &path) const;
public slots:
void setOrder(int order);