Add copy comment functionality to the torrent list's context menu

PR #19846.
Closes #18890.
This commit is contained in:
thalieht
2023-11-07 11:42:31 +02:00
committed by GitHub
parent f067ab1692
commit 30d9978c97
7 changed files with 37 additions and 0 deletions

View File

@@ -160,6 +160,7 @@ QVariantMap serialize(const BitTorrent::Torrent &torrent)
{KEY_TORRENT_LAST_ACTIVITY_TIME, getLastActivityTime()},
{KEY_TORRENT_AVAILABILITY, torrent.distributedCopies()},
{KEY_TORRENT_REANNOUNCE, torrent.nextAnnounce()},
{KEY_TORRENT_COMMENT, torrent.comment()},
{KEY_TORRENT_TOTAL_SIZE, torrent.totalSize()}
};

View File

@@ -91,5 +91,6 @@ inline const QString KEY_TORRENT_TIME_ACTIVE = u"time_active"_s;
inline const QString KEY_TORRENT_SEEDING_TIME = u"seeding_time"_s;
inline const QString KEY_TORRENT_AVAILABILITY = u"availability"_s;
inline const QString KEY_TORRENT_REANNOUNCE = u"reannounce"_s;
inline const QString KEY_TORRENT_COMMENT = u"comment"_s;
QVariantMap serialize(const BitTorrent::Torrent &torrent);