From 459f58c57bfa1021783134b11853e8e4140055f3 Mon Sep 17 00:00:00 2001 From: Arno Date: Sun, 2 Jun 2013 00:43:09 +0200 Subject: Remember expanded Items For the current SortOrder the expanded items are written to the config file and read on startup. --- archiveview.h | 7 +++++++ 1 file changed, 7 insertions(+) (limited to 'archiveview.h') 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 mExpandedItems; bool mConstructing; }; -- cgit v1.2.3-70-g09d2