mirror of
https://github.com/RetroShare/RetroShare.git
synced 2025-05-18 05:50:39 -04:00
Add a timer in SharedFilesDialog filter to not so often triggs search in
files.
This commit is contained in:
parent
c19919962d
commit
eccff5358a
2 changed files with 50 additions and 21 deletions
|
@ -22,10 +22,13 @@
|
|||
#ifndef _SHAREDFILESDIALOG_H
|
||||
#define _SHAREDFILESDIALOG_H
|
||||
|
||||
#include <set>
|
||||
#include "ui_SharedFilesDialog.h"
|
||||
|
||||
#include "RsAutoUpdatePage.h"
|
||||
#include "gui/RetroShareLink.h"
|
||||
#include "ui_SharedFilesDialog.h"
|
||||
#include "util/RsProtectedTimer.h"
|
||||
|
||||
#include <set>
|
||||
|
||||
class RetroshareDirModel;
|
||||
class QSortFilterProxyModel;
|
||||
|
@ -73,6 +76,7 @@ private slots:
|
|||
|
||||
void indicatorChanged(int index);
|
||||
|
||||
void onFilterTextEdited();
|
||||
void filterRegExpChanged();
|
||||
void clearFilter();
|
||||
void startFilter();
|
||||
|
@ -137,6 +141,7 @@ protected:
|
|||
|
||||
QString lastFilterString;
|
||||
QString mLastFilterText ;
|
||||
RsProtectedTimer* mFilterTimer;
|
||||
|
||||
QList<QModelIndex> mHiddenIndexes;
|
||||
};
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue