mirror of
https://github.com/qbittorrent/qBittorrent.git
synced 2025-12-21 07:57:22 -06:00
@@ -47,6 +47,8 @@ class TransferListSortModel final : public QSortFilterProxyModel
|
||||
public:
|
||||
explicit TransferListSortModel(QObject *parent = nullptr);
|
||||
|
||||
void sort(int column, Qt::SortOrder order = Qt::AscendingOrder) override;
|
||||
|
||||
void setStatusFilter(TorrentFilter::Type filter);
|
||||
void setCategoryFilter(const QString &category);
|
||||
void disableCategoryFilter();
|
||||
@@ -63,8 +65,10 @@ private:
|
||||
bool matchFilter(int sourceRow, const QModelIndex &sourceParent) const;
|
||||
|
||||
TorrentFilter m_filter;
|
||||
mutable CachedSettingValue<int> m_subSortColumn;
|
||||
mutable int m_lastSortColumn = -1;
|
||||
CachedSettingValue<int> m_subSortColumn;
|
||||
CachedSettingValue<int> m_subSortOrder;
|
||||
int m_lastSortColumn = -1;
|
||||
int m_lastSortOrder = 0;
|
||||
|
||||
Utils::Compare::NaturalCompare<Qt::CaseInsensitive> m_naturalCompare;
|
||||
};
|
||||
|
||||
Reference in New Issue
Block a user