save/restore expanded state in file list tree view so that view gets updated seamlessly

This commit is contained in:
mr-alice 2016-08-28 23:14:39 +02:00
parent 494d2071c9
commit 7c2ed3fca0
5 changed files with 118 additions and 49 deletions

View file

@ -72,7 +72,8 @@ class RetroshareDirModel : public QAbstractItemModel
void getFileInfoFromIndexList(const QModelIndexList& list, std::list<DirDetails>& files_info) ;
void openSelected(const QModelIndexList &list);
void getFilePaths(const QModelIndexList &list, std::list<std::string> &fullpaths);
void changeAgeIndicator(uint32_t indicator) { ageIndicator = indicator; }
void getFilePath(const QModelIndex& index, std::string& fullpath);
void changeAgeIndicator(uint32_t indicator) { ageIndicator = indicator; }
bool requestDirDetails(void *ref, bool remote,DirDetails& d) const;
virtual void update() {}