Remove mutable fields from TorrentModelItem

The querying of TR_STATUS doesn't affect color and icon now.
This commit is contained in:
Ivan Sorokin
2014-10-25 14:12:05 +04:00
parent ad116edac7
commit 80297697dd
2 changed files with 75 additions and 51 deletions

View File

@@ -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
};