mirror of
https://github.com/qbittorrent/qBittorrent.git
synced 2026-01-09 00:52:30 -06:00
Add availability column to torrent content model
This commit is contained in:
@@ -58,6 +58,7 @@ public:
|
||||
COL_PROGRESS,
|
||||
COL_PRIO,
|
||||
COL_REMAINING,
|
||||
COL_AVAILABILITY,
|
||||
NB_COL
|
||||
};
|
||||
|
||||
@@ -81,6 +82,8 @@ public:
|
||||
qreal progress() const;
|
||||
qulonglong remaining() const;
|
||||
|
||||
qreal availability() const;
|
||||
|
||||
int priority() const;
|
||||
virtual void setPriority(int newPriority, bool updateParent = true) = 0;
|
||||
|
||||
@@ -98,6 +101,7 @@ protected:
|
||||
qulonglong m_remaining;
|
||||
int m_priority;
|
||||
qreal m_progress;
|
||||
qreal m_availability;
|
||||
};
|
||||
|
||||
#endif // TORRENTCONTENTMODELITEM_H
|
||||
|
||||
Reference in New Issue
Block a user