Support sub-sorting in Transferlist

This commit is contained in:
jagannatharjun
2021-02-18 14:32:36 +05:30
parent e6033c952e
commit b776f98df8
2 changed files with 46 additions and 17 deletions

View File

@@ -53,9 +53,13 @@ public:
void disableTrackerFilter();
private:
int compare(const QModelIndex &left, const QModelIndex &right) const;
bool lessThan(const QModelIndex &left, const QModelIndex &right) const override;
bool filterAcceptsRow(int sourceRow, const QModelIndex &sourceParent) const override;
bool matchFilter(int sourceRow, const QModelIndex &sourceParent) const;
TorrentFilter m_filter;
mutable int m_subSortColumn = -1;
mutable int m_sortColumn = -1;
};