mirror of
https://github.com/qbittorrent/qBittorrent.git
synced 2025-01-06 15:04:34 +08:00
Add icon to "Copy name" option and change item ordering
The Copy icon is added to the menu item. This is in tandem with other uses of the same icon, such as "Copy" (in log), "Copy selected" (in peer list), "Copy tracker url", etc. Also changed the ordering to have the new option appear before the existing "Copy magnet link" icon. This is as per comments in PR qbittorrent#2493 Signed-off-by: ADTC <send2adtc@gmail.com>
This commit is contained in:
parent
91aad83cad
commit
5d3f68e422
@ -755,7 +755,7 @@ 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(tr("Copy name"), 0);
|
||||
QAction actionCopy_caption_list(IconProvider::instance()->getIcon("edit-copy"), tr("Copy name"), 0);
|
||||
connect(&actionCopy_caption_list, SIGNAL(triggered()), this, SLOT(copySelectedCaptions()));
|
||||
|
||||
QAction actionSuper_seeding_mode(tr("Super seeding mode"), 0);
|
||||
@ -890,8 +890,8 @@ void TransferListWidget::displayListMenu(const QPoint&)
|
||||
prioMenu->addAction(&actionBottomPriority);
|
||||
}
|
||||
listMenu.addSeparator();
|
||||
listMenu.addAction(&actionCopy_magnet_link);
|
||||
listMenu.addAction(&actionCopy_caption_list);
|
||||
listMenu.addAction(&actionCopy_magnet_link);
|
||||
// Call menu
|
||||
QAction *act = 0;
|
||||
act = listMenu.exec(QCursor::pos());
|
||||
|
Loading…
Reference in New Issue
Block a user