mirror of
https://github.com/d47081/qBittorrent.git
synced 2025-01-23 21:14:33 +00:00
Follow project coding style. Issue #2192.
This commit is contained in:
parent
79a9696703
commit
1b2e65011d
@ -35,33 +35,34 @@
|
|||||||
#include <QStringList>
|
#include <QStringList>
|
||||||
#include "torrentfilterenum.h"
|
#include "torrentfilterenum.h"
|
||||||
|
|
||||||
class TransferListSortModel : public QSortFilterProxyModel {
|
class TransferListSortModel: public QSortFilterProxyModel
|
||||||
Q_OBJECT
|
{
|
||||||
|
Q_OBJECT
|
||||||
|
|
||||||
public:
|
public:
|
||||||
TransferListSortModel(QObject *parent = 0);
|
TransferListSortModel(QObject *parent = 0);
|
||||||
|
|
||||||
void setStatusFilter(const TorrentFilter::TorrentFilter &filter);
|
void setStatusFilter(const TorrentFilter::TorrentFilter &filter);
|
||||||
void setLabelFilter(const QString &label);
|
void setLabelFilter(const QString &label);
|
||||||
void disableLabelFilter();
|
void disableLabelFilter();
|
||||||
void setTrackerFilter(const QStringList &hashes);
|
void setTrackerFilter(const QStringList &hashes);
|
||||||
void disableTrackerFilter();
|
void disableTrackerFilter();
|
||||||
|
|
||||||
private:
|
private:
|
||||||
bool lessThan(const QModelIndex &left, const QModelIndex &right) const;
|
bool lessThan(const QModelIndex &left, const QModelIndex &right) const;
|
||||||
bool filterAcceptsRow(int sourceRow, const QModelIndex &sourceParent) const;
|
bool filterAcceptsRow(int sourceRow, const QModelIndex &sourceParent) const;
|
||||||
|
|
||||||
bool matchStatusFilter(int sourceRow, const QModelIndex &sourceParent) const;
|
bool matchStatusFilter(int sourceRow, const QModelIndex &sourceParent) const;
|
||||||
bool matchLabelFilter(int sourceRow, const QModelIndex &sourceParent) const;
|
bool matchLabelFilter(int sourceRow, const QModelIndex &sourceParent) const;
|
||||||
bool matchTrackerFilter(int sourceRow, const QModelIndex &sourceParent) const;
|
bool matchTrackerFilter(int sourceRow, const QModelIndex &sourceParent) const;
|
||||||
|
|
||||||
private:
|
private:
|
||||||
TorrentFilter::TorrentFilter filter0;
|
TorrentFilter::TorrentFilter filter0;
|
||||||
|
|
||||||
bool labelFilterEnabled;
|
bool labelFilterEnabled;
|
||||||
QString labelFilter;
|
QString labelFilter;
|
||||||
bool trackerFilterEnabled;
|
bool trackerFilterEnabled;
|
||||||
QStringList trackerFilter;
|
QStringList trackerFilter;
|
||||||
};
|
};
|
||||||
|
|
||||||
#endif // TRANSFERLISTSORTMODEL_H
|
#endif // TRANSFERLISTSORTMODEL_H
|
||||||
|
Loading…
x
Reference in New Issue
Block a user