mirror of
https://github.com/qbittorrent/qBittorrent.git
synced 2026-01-06 23:52:31 -06:00
committed by
GitHub
parent
d2fceaa228
commit
5ef2a1df07
@@ -30,7 +30,7 @@
|
||||
#pragma once
|
||||
|
||||
#include <QAbstractItemModel>
|
||||
#include <QVector>
|
||||
#include <QList>
|
||||
|
||||
#include "base/indexrange.h"
|
||||
#include "base/pathfwd.h"
|
||||
@@ -66,7 +66,7 @@ public:
|
||||
|
||||
void refresh();
|
||||
|
||||
QVector<BitTorrent::DownloadPriority> getFilePriorities() const;
|
||||
QList<BitTorrent::DownloadPriority> getFilePriorities() const;
|
||||
TorrentContentModelItem::ItemType itemType(const QModelIndex &index) const;
|
||||
int getFileIndex(const QModelIndex &index) const;
|
||||
Path getItemPath(const QModelIndex &index) const;
|
||||
@@ -91,10 +91,10 @@ private:
|
||||
void updateFilesPriorities();
|
||||
void updateFilesAvailability();
|
||||
bool setItemPriority(const QModelIndex &index, BitTorrent::DownloadPriority priority);
|
||||
void notifySubtreeUpdated(const QModelIndex &index, const QVector<ColumnInterval> &columns);
|
||||
void notifySubtreeUpdated(const QModelIndex &index, const QList<ColumnInterval> &columns);
|
||||
|
||||
BitTorrent::TorrentContentHandler *m_contentHandler = nullptr;
|
||||
TorrentContentModelFolder *m_rootItem = nullptr;
|
||||
QVector<TorrentContentModelFile *> m_filesIndex;
|
||||
QList<TorrentContentModelFile *> m_filesIndex;
|
||||
QFileIconProvider *m_fileIconProvider = nullptr;
|
||||
};
|
||||
|
||||
Reference in New Issue
Block a user