mirror of
https://github.com/qbittorrent/qBittorrent.git
synced 2025-12-23 00:47:21 -06:00
Don't use deprecated torrent_status fields
This commit is contained in:
@@ -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
|
||||
|
||||
@@ -258,9 +258,11 @@ QString TransferListDelegate::getStatusString(const int state) const
|
||||
case BitTorrent::TorrentState::CheckingUploading:
|
||||
str = tr("Checking", "Torrent local data is being checked");
|
||||
break;
|
||||
#if LIBTORRENT_VERSION_NUM < 10100
|
||||
case BitTorrent::TorrentState::QueuedForChecking:
|
||||
str = tr("Queued for checking", "i.e. torrent is queued for hash checking");
|
||||
break;
|
||||
#endif
|
||||
case BitTorrent::TorrentState::CheckingResumeData:
|
||||
str = tr("Checking resume data", "used when loading the torrents from disk after qbt is launched. It checks the correctness of the .fastresume file. Normally it is completed in a fraction of a second, unless loading many many torrents.");
|
||||
break;
|
||||
|
||||
Reference in New Issue
Block a user