mirror of
https://github.com/RetroShare/RetroShare.git
synced 2025-05-12 02:55:18 -04:00
attempt at making remoteDirModel less CPU intentive. Remove potential deadlock source in SearchDialog.
git-svn-id: http://svn.code.sf.net/p/retroshare/code/trunk@4155 b45a01b8-16f6-495d-af2f-9b41ad6348cc
This commit is contained in:
parent
2dbd6f4380
commit
a337941555
5 changed files with 82 additions and 12 deletions
|
@ -50,6 +50,9 @@ class RetroshareDirModel : public QAbstractItemModel
|
|||
virtual void preMods();
|
||||
virtual void postMods();
|
||||
|
||||
void setVisible(bool b) { _visible = b ; }
|
||||
bool visible() { return _visible ;}
|
||||
|
||||
/* Callback from GUI */
|
||||
void downloadSelected(const QModelIndexList &list);
|
||||
|
||||
|
@ -62,6 +65,7 @@ class RetroshareDirModel : public QAbstractItemModel
|
|||
void changeAgeIndicator(uint32_t indicator) { ageIndicator = indicator; }
|
||||
|
||||
bool requestDirDetails(void *ref,DirDetails& details,uint32_t flags) const;
|
||||
void update() ;
|
||||
public:
|
||||
|
||||
virtual QMimeData * mimeData ( const QModelIndexList & indexes ) const;
|
||||
|
@ -69,6 +73,9 @@ class RetroshareDirModel : public QAbstractItemModel
|
|||
virtual QVariant data(const QModelIndex &index, int role) const;
|
||||
|
||||
protected:
|
||||
bool _visible ;
|
||||
bool _needs_update ;
|
||||
|
||||
void treeStyle();
|
||||
void downloadDirectory(const DirDetails & details, int prefixLen);
|
||||
static QString getFlagsString(uint32_t) ;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue