improved cost of reseting search in SharedFileDialog by saving hidden indexes list

This commit is contained in:
csoler 2018-02-15 00:02:08 +01:00
parent 72124bbd3f
commit 47f9a4907b
No known key found for this signature in database
GPG key ID: 7BCA522266C0804C
2 changed files with 32 additions and 27 deletions

View file

@ -107,6 +107,8 @@ protected:
bool tree_FilterItem(const QModelIndex &index, const QString &text, int level);
bool flat_FilterItem(const QModelIndex &index, const QString &text, int level);
void restoreInvisibleItems();
QModelIndexList getSelected();
/** Defines the actions for the context menu for QTreeWidget */
@ -133,6 +135,8 @@ protected:
QString lastFilterString;
QString mLastFilterText ;
QList<QModelIndex> mHiddenIndexes;
};
class LocalSharedFilesDialog : public SharedFilesDialog