mirror of
https://github.com/qbittorrent/qBittorrent.git
synced 2026-01-03 06:02:29 -06:00
Use ProgressbarDelegate for drawing progressbar in PropListDelegate
Also directly provide display data from model rather then generating it in delegate
This commit is contained in:
@@ -51,6 +51,11 @@ class TorrentContentModel final : public QAbstractItemModel
|
||||
Q_DISABLE_COPY(TorrentContentModel)
|
||||
|
||||
public:
|
||||
enum Roles
|
||||
{
|
||||
UnderlyingDataRole = Qt::UserRole
|
||||
};
|
||||
|
||||
TorrentContentModel(QObject *parent = nullptr);
|
||||
~TorrentContentModel() override;
|
||||
|
||||
|
||||
Reference in New Issue
Block a user