VCS: Generalize selections preserving on model refresh

Default implementation is between O(n) (for identical models) to
O(n*m) (for disjoint models). If sort order is known, this
can be reduced to O(n+m), like in Git implementation.

Change-Id: I44662a22961311cb882601d20efa9d445f74748b
Reviewed-by: Tobias Hunger <tobias.hunger@digia.com>
Reviewed-by: hjk <qthjk@ovi.com>
This commit is contained in:
Orgad Shaneh
2013-01-02 23:21:30 +02:00
committed by hjk
parent 01084aaa38
commit 2396f34fda
4 changed files with 62 additions and 25 deletions

View File

@@ -65,6 +65,8 @@ public:
// Filter for entries contained in the filter list. Returns the
// number of deleted entries.
unsigned int filterFiles(const QStringList &filter);
virtual void updateSelections(SubmitFileModel *source);
};
} // namespace VcsBase