|
|
@ -53,16 +53,16 @@ public: |
|
|
|
void updateFilesAvailability(const QVector<qreal> &fa); |
|
|
|
void updateFilesAvailability(const QVector<qreal> &fa); |
|
|
|
QVector<int> getFilePriorities() const; |
|
|
|
QVector<int> getFilePriorities() const; |
|
|
|
bool allFiltered() const; |
|
|
|
bool allFiltered() const; |
|
|
|
int columnCount(const QModelIndex &parent = QModelIndex()) const override; |
|
|
|
int columnCount(const QModelIndex &parent = {}) const override; |
|
|
|
bool setData(const QModelIndex &index, const QVariant &value, int role = Qt::EditRole) override; |
|
|
|
bool setData(const QModelIndex &index, const QVariant &value, int role = Qt::EditRole) override; |
|
|
|
TorrentContentModelItem::ItemType itemType(const QModelIndex &index) const; |
|
|
|
TorrentContentModelItem::ItemType itemType(const QModelIndex &index) const; |
|
|
|
int getFileIndex(const QModelIndex &index); |
|
|
|
int getFileIndex(const QModelIndex &index); |
|
|
|
QVariant data(const QModelIndex &index, int role = Qt::DisplayRole) const override; |
|
|
|
QVariant data(const QModelIndex &index, int role = Qt::DisplayRole) const override; |
|
|
|
Qt::ItemFlags flags(const QModelIndex &index) const override; |
|
|
|
Qt::ItemFlags flags(const QModelIndex &index) const override; |
|
|
|
QVariant headerData(int section, Qt::Orientation orientation, int role) const override; |
|
|
|
QVariant headerData(int section, Qt::Orientation orientation, int role) const override; |
|
|
|
QModelIndex index(int row, int column, const QModelIndex &parent = QModelIndex()) const override; |
|
|
|
QModelIndex index(int row, int column, const QModelIndex &parent = {}) const override; |
|
|
|
QModelIndex parent(const QModelIndex &index) const override; |
|
|
|
QModelIndex parent(const QModelIndex &index) const override; |
|
|
|
int rowCount(const QModelIndex &parent = QModelIndex()) const override; |
|
|
|
int rowCount(const QModelIndex &parent = {}) const override; |
|
|
|
void clear(); |
|
|
|
void clear(); |
|
|
|
void setupModelData(const BitTorrent::TorrentInfo &info); |
|
|
|
void setupModelData(const BitTorrent::TorrentInfo &info); |
|
|
|
|
|
|
|
|
|
|
|