diff options
author | Arno <am@disconnect.de> | 2013-06-02 00:43:09 +0200 |
---|---|---|
committer | Arno <am@disconnect.de> | 2013-06-02 00:43:09 +0200 |
commit | 459f58c57bfa1021783134b11853e8e4140055f3 (patch) | |
tree | 48c8bebb968eac10ced310ec33e204b17dee32f8 /archiveview.h | |
parent | 6fec376f7f44145efa509668927a0179c8ffa65e (diff) | |
download | SheMov-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 'archiveview.h')
-rw-r--r-- | archiveview.h | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/archiveview.h b/archiveview.h index a62fd66..33969d9 100644 --- a/archiveview.h +++ b/archiveview.h @@ -35,13 +35,19 @@ class ArchiveView : public QWidget { // this is needed for displaying the progress dialog in the // center of the main window... void setConstructingDone() { mConstructing = false; } + ArchiveModel *archiveModel() { return mArchiveModel; } QWidget *progressDialog(); + public slots: + void setExpanded(); + private slots: void setFilter(); void clearFilter(); void collectorStarted(); void collectorFinished(); + void expandItem(const QModelIndex &idx); + void collapseItem(const QModelIndex &idx); private: QComboBox *mSortOrder; @@ -51,6 +57,7 @@ class ArchiveView : public QWidget { ArchiveModel *mArchiveModel; ArchiveProxy *mProxy; ArchiveProgressDialog *mProgress; + QList<QPersistentModelIndex> mExpandedItems; bool mConstructing; }; |