mirror of
https://github.com/d47081/qBittorrent.git
synced 2025-01-23 04:54:18 +00:00
Changed "caption" to "name" in code for consistency
To maintain consistency with the actual English menu item, the variable names and method name have been changed to reflect the menu item text. Per comments in PR qbittorrent#2493 Signed-off-by: ADTC <send2adtc@gmail.com>
This commit is contained in:
parent
5d3f68e422
commit
d0c523ed00
@ -424,17 +424,16 @@ void TransferListWidget::copySelectedMagnetURIs() const
|
||||
qApp->clipboard()->setText(magnet_uris.join("\n"));
|
||||
}
|
||||
|
||||
// create list of captions from tasklist.
|
||||
void TransferListWidget::copySelectedCaptions() const
|
||||
void TransferListWidget::copySelectedNames() const
|
||||
{
|
||||
QStringList captions;
|
||||
QStringList torrent_names;
|
||||
const QStringList hashes = getSelectedTorrentsHashes();
|
||||
foreach (const QString &hash, hashes) {
|
||||
const QTorrentHandle h = BTSession->getTorrentHandle(hash);
|
||||
if (h.is_valid())
|
||||
captions << h.name();
|
||||
torrent_names << h.name();
|
||||
}
|
||||
qApp->clipboard()->setText(captions.join("\n"));
|
||||
qApp->clipboard()->setText(torrent_names.join("\n"));
|
||||
}
|
||||
|
||||
void TransferListWidget::hidePriorityColumn(bool hide)
|
||||
@ -755,8 +754,8 @@ void TransferListWidget::displayListMenu(const QPoint&)
|
||||
QAction actionCopy_magnet_link(QIcon(":/icons/magnet.png"), tr("Copy magnet link"), 0);
|
||||
connect(&actionCopy_magnet_link, SIGNAL(triggered()), this, SLOT(copySelectedMagnetURIs()));
|
||||
|
||||
QAction actionCopy_caption_list(IconProvider::instance()->getIcon("edit-copy"), tr("Copy name"), 0);
|
||||
connect(&actionCopy_caption_list, SIGNAL(triggered()), this, SLOT(copySelectedCaptions()));
|
||||
QAction actionCopy_name(IconProvider::instance()->getIcon("edit-copy"), tr("Copy name"), 0);
|
||||
connect(&actionCopy_name, SIGNAL(triggered()), this, SLOT(copySelectedNames()));
|
||||
|
||||
QAction actionSuper_seeding_mode(tr("Super seeding mode"), 0);
|
||||
actionSuper_seeding_mode.setCheckable(true);
|
||||
@ -890,7 +889,7 @@ void TransferListWidget::displayListMenu(const QPoint&)
|
||||
prioMenu->addAction(&actionBottomPriority);
|
||||
}
|
||||
listMenu.addSeparator();
|
||||
listMenu.addAction(&actionCopy_caption_list);
|
||||
listMenu.addAction(&actionCopy_name);
|
||||
listMenu.addAction(&actionCopy_magnet_link);
|
||||
// Call menu
|
||||
QAction *act = 0;
|
||||
|
@ -71,7 +71,7 @@ public slots:
|
||||
void topPrioSelectedTorrents();
|
||||
void bottomPrioSelectedTorrents();
|
||||
void copySelectedMagnetURIs() const;
|
||||
void copySelectedCaptions() const;
|
||||
void copySelectedNames() const;
|
||||
void openSelectedTorrentsFolder() const;
|
||||
void recheckSelectedTorrents();
|
||||
void setDlLimitSelectedTorrents();
|
||||
|
Loading…
x
Reference in New Issue
Block a user