mirror of
https://github.com/RetroShare/RetroShare.git
synced 2025-05-18 05:50:39 -04:00
improved cost of reseting search in SharedFileDialog by saving hidden indexes list
This commit is contained in:
parent
72124bbd3f
commit
47f9a4907b
2 changed files with 32 additions and 27 deletions
|
@ -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
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue