|
|
@ -54,16 +54,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; |
|
|
|
virtual int columnCount(const QModelIndex &parent = QModelIndex()) const; |
|
|
|
int columnCount(const QModelIndex &parent = QModelIndex()) const override; |
|
|
|
virtual bool setData(const QModelIndex& index, const QVariant& value, int role = Qt::EditRole); |
|
|
|
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); |
|
|
|
virtual QVariant data(const QModelIndex& index, int role = Qt::DisplayRole) const; |
|
|
|
QVariant data(const QModelIndex& index, int role = Qt::DisplayRole) const override; |
|
|
|
virtual Qt::ItemFlags flags(const QModelIndex& index) const; |
|
|
|
Qt::ItemFlags flags(const QModelIndex& index) const override; |
|
|
|
virtual QVariant headerData(int section, Qt::Orientation orientation, int role) const; |
|
|
|
QVariant headerData(int section, Qt::Orientation orientation, int role) const override; |
|
|
|
virtual QModelIndex index(int row, int column, const QModelIndex& parent = QModelIndex()) const; |
|
|
|
QModelIndex index(int row, int column, const QModelIndex& parent = QModelIndex()) const override; |
|
|
|
virtual QModelIndex parent(const QModelIndex& index) const; |
|
|
|
QModelIndex parent(const QModelIndex& index) const override; |
|
|
|
virtual int rowCount(const QModelIndex& parent = QModelIndex()) const; |
|
|
|
int rowCount(const QModelIndex& parent = QModelIndex()) const override; |
|
|
|
void clear(); |
|
|
|
void clear(); |
|
|
|
void setupModelData(const BitTorrent::TorrentInfo &info); |
|
|
|
void setupModelData(const BitTorrent::TorrentInfo &info); |
|
|
|
|
|
|
|
|
|
|
|