mirror of
https://github.com/qbittorrent/qBittorrent
synced 2025-07-15 01:33:07 -07:00
* Add copy options to webui context menu Add Copy Hash to gui (closes #6964) * Use switch statement * Use camel case, switch from signal to qaction. * Rename variable * Change variable name
This commit is contained in:
parent
08aa827366
commit
145641ac41
8 changed files with 90 additions and 0 deletions
|
@ -76,6 +76,7 @@ static const int CACHE_DURATION_MS = 1500; // 1500ms
|
|||
// Torrent keys
|
||||
static const char KEY_TORRENT_HASH[] = "hash";
|
||||
static const char KEY_TORRENT_NAME[] = "name";
|
||||
static const char KEY_TORRENT_MAGNET_URI[] = "magnet_uri";
|
||||
static const char KEY_TORRENT_SIZE[] = "size";
|
||||
static const char KEY_TORRENT_PROGRESS[] = "progress";
|
||||
static const char KEY_TORRENT_DLSPEED[] = "dlspeed";
|
||||
|
@ -789,6 +790,7 @@ QVariantMap toMap(BitTorrent::TorrentHandle *const torrent)
|
|||
QVariantMap ret;
|
||||
ret[KEY_TORRENT_HASH] = QString(torrent->hash());
|
||||
ret[KEY_TORRENT_NAME] = torrent->name();
|
||||
ret[KEY_TORRENT_MAGNET_URI] = torrent->toMagnetUri();
|
||||
ret[KEY_TORRENT_SIZE] = torrent->wantedSize();
|
||||
ret[KEY_TORRENT_PROGRESS] = torrent->progress();
|
||||
ret[KEY_TORRENT_DLSPEED] = torrent->downloadPayloadRate();
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue