mirror of
https://github.com/qbittorrent/qBittorrent
synced 2025-07-30 19:40:18 -07:00
Don't use deprecated torrent_status fields
This commit is contained in:
parent
72a54910e9
commit
5dc54aa224
4 changed files with 26 additions and 3 deletions
|
@ -338,7 +338,9 @@ QIcon getIconByState(BitTorrent::TorrentState state)
|
|||
return getQueuedIcon();
|
||||
case BitTorrent::TorrentState::CheckingDownloading:
|
||||
case BitTorrent::TorrentState::CheckingUploading:
|
||||
#if LIBTORRENT_VERSION_NUM < 10100
|
||||
case BitTorrent::TorrentState::QueuedForChecking:
|
||||
#endif
|
||||
case BitTorrent::TorrentState::CheckingResumeData:
|
||||
return getCheckingIcon();
|
||||
case BitTorrent::TorrentState::Unknown:
|
||||
|
@ -391,7 +393,9 @@ QColor getColorByState(BitTorrent::TorrentState state)
|
|||
case BitTorrent::TorrentState::QueuedUploading:
|
||||
case BitTorrent::TorrentState::CheckingDownloading:
|
||||
case BitTorrent::TorrentState::CheckingUploading:
|
||||
#if LIBTORRENT_VERSION_NUM < 10100
|
||||
case BitTorrent::TorrentState::QueuedForChecking:
|
||||
#endif
|
||||
case BitTorrent::TorrentState::CheckingResumeData:
|
||||
if (!dark)
|
||||
return QColor(0, 128, 128); // Teal
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue