mirror of
https://github.com/qbittorrent/qBittorrent.git
synced 2026-01-09 09:02:31 -06:00
Remove mutable fields from TorrentModelItem
The querying of TR_STATUS doesn't affect color and icon now.
This commit is contained in:
@@ -63,6 +63,8 @@ signals:
|
||||
void labelChanged(QString previous, QString current);
|
||||
|
||||
private:
|
||||
static QIcon getIconByState(State state);
|
||||
static QColor getColorByState(State state);
|
||||
State state() const;
|
||||
|
||||
private:
|
||||
@@ -71,8 +73,6 @@ private:
|
||||
QDateTime m_addedTime;
|
||||
QString m_label;
|
||||
QString m_name;
|
||||
mutable QIcon m_icon;
|
||||
mutable QColor m_fgColor;
|
||||
QString m_hash; // Cached for safety reasons
|
||||
};
|
||||
|
||||
|
||||
Reference in New Issue
Block a user