mirror of
https://github.com/qbittorrent/qBittorrent.git
synced 2025-12-17 22:18:05 -06:00
@@ -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:
|
||||
|
||||
Reference in New Issue
Block a user