add a remaining column to the torrent content model

This commit is contained in:
Ben Lau
2016-01-09 10:10:57 -08:00
parent 6054e05e70
commit cd9cae4121
7 changed files with 30 additions and 3 deletions

View File

@@ -42,7 +42,7 @@ class TorrentContentModelFolder;
class TorrentContentModelItem {
public:
enum TreeItemColumns {COL_NAME, COL_SIZE, COL_PROGRESS, COL_PRIO, NB_COL};
enum TreeItemColumns {COL_NAME, COL_SIZE, COL_PROGRESS, COL_PRIO, COL_REMAINING, NB_COL};
enum ItemType { FileType, FolderType };
TorrentContentModelItem(TorrentContentModelFolder* parent);
@@ -57,6 +57,7 @@ public:
qulonglong size() const;
qreal progress() const;
qulonglong remaining() const;
int priority() const;
virtual void setPriority(int new_prio, bool update_parent = true) = 0;
@@ -72,6 +73,7 @@ protected:
// Non-root item members
QString m_name;
qulonglong m_size;
qulonglong m_remaining;
int m_priority;
qreal m_progress;
};