|
|
@ -58,6 +58,7 @@ public: |
|
|
|
QVariant data(int column, int role = Qt::DisplayRole) const; |
|
|
|
QVariant data(int column, int role = Qt::DisplayRole) const; |
|
|
|
bool setData(int column, const QVariant &value, int role = Qt::DisplayRole); |
|
|
|
bool setData(int column, const QVariant &value, int role = Qt::DisplayRole); |
|
|
|
inline QString hash() const { return m_hash; } |
|
|
|
inline QString hash() const { return m_hash; } |
|
|
|
|
|
|
|
State state() const; |
|
|
|
|
|
|
|
|
|
|
|
signals: |
|
|
|
signals: |
|
|
|
void labelChanged(QString previous, QString current); |
|
|
|
void labelChanged(QString previous, QString current); |
|
|
@ -65,7 +66,6 @@ signals: |
|
|
|
private: |
|
|
|
private: |
|
|
|
static QIcon getIconByState(State state); |
|
|
|
static QIcon getIconByState(State state); |
|
|
|
static QColor getColorByState(State state); |
|
|
|
static QColor getColorByState(State state); |
|
|
|
State state() const; |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
private: |
|
|
|
private: |
|
|
|
QTorrentHandle m_torrent; |
|
|
|
QTorrentHandle m_torrent; |
|
|
|