From 4dbc235c70ce8d289599808653ce5f535da288c1 Mon Sep 17 00:00:00 2001 From: sledgehammer999 Date: Sun, 9 Nov 2014 13:59:11 +0200 Subject: [PATCH] Use rgb values to match colors before commit ad116e. Taken from qcolor_p.cpp. --- src/qtlibtorrent/torrentmodel.cpp | 14 +++++++------- 1 file changed, 7 insertions(+), 7 deletions(-) diff --git a/src/qtlibtorrent/torrentmodel.cpp b/src/qtlibtorrent/torrentmodel.cpp index 774240600..71a60f63c 100644 --- a/src/qtlibtorrent/torrentmodel.cpp +++ b/src/qtlibtorrent/torrentmodel.cpp @@ -169,28 +169,28 @@ QColor TorrentModelItem::getColorByState(State state) { switch (state) { case STATE_DOWNLOADING: case STATE_DOWNLOADING_META: - return QColor(Qt::green); + return QColor(0, 128, 0); // green case STATE_ALLOCATING: case STATE_STALLED_DL: case STATE_STALLED_UP: - return QColor(Qt::gray); + return QColor(128, 128, 128); // grey case STATE_SEEDING: - return QColor(255, 165, 0); + return QColor(255, 165, 0); // orange case STATE_PAUSED_DL: case STATE_PAUSED_UP: - return QColor(Qt::red); + return QColor(255, 0, 0); // red case STATE_QUEUED_DL: case STATE_QUEUED_UP: case STATE_CHECKING_UP: case STATE_CHECKING_DL: case STATE_QUEUED_CHECK: case STATE_QUEUED_FASTCHECK: - return QColor(Qt::gray); + return QColor(128, 128, 128); // grey case STATE_INVALID: - return QColor(Qt::red); + return QColor(255, 0, 0); // red default: Q_ASSERT(false); - return QColor(Qt::red); + return QColor(255, 0, 0); // red } }