mirror of
https://github.com/qbittorrent/qBittorrent
synced 2025-07-11 07:46:17 -07:00
parent
ab6141edb7
commit
fdc186c92f
20 changed files with 257 additions and 50 deletions
|
@ -323,13 +323,6 @@ QString TransferListModel::displayValue(const BitTorrent::Torrent *torrent, cons
|
|||
, Utils::Misc::userFriendlyDuration(seedingTime));
|
||||
};
|
||||
|
||||
const auto tagsString = [](const QSet<QString> &tags) -> QString
|
||||
{
|
||||
QStringList tagsList = tags.values();
|
||||
tagsList.sort();
|
||||
return tagsList.join(", ");
|
||||
};
|
||||
|
||||
const auto progressString = [](const qreal progress) -> QString
|
||||
{
|
||||
return (progress >= 1)
|
||||
|
@ -373,7 +366,7 @@ QString TransferListModel::displayValue(const BitTorrent::Torrent *torrent, cons
|
|||
case TR_CATEGORY:
|
||||
return torrent->category();
|
||||
case TR_TAGS:
|
||||
return tagsString(torrent->tags());
|
||||
return torrent->tags().join(QLatin1String(", "));
|
||||
case TR_ADD_DATE:
|
||||
return QLocale().toString(torrent->addedTime().toLocalTime(), QLocale::ShortFormat);
|
||||
case TR_SEED_DATE:
|
||||
|
@ -442,7 +435,7 @@ QVariant TransferListModel::internalValue(const BitTorrent::Torrent *torrent, co
|
|||
case TR_CATEGORY:
|
||||
return torrent->category();
|
||||
case TR_TAGS:
|
||||
return QStringList {torrent->tags().values()};
|
||||
return QVariant::fromValue(torrent->tags());
|
||||
case TR_ADD_DATE:
|
||||
return torrent->addedTime();
|
||||
case TR_SEED_DATE:
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue