mirror of
https://github.com/d47081/qBittorrent.git
synced 2025-01-11 07:18:08 +00:00
- Added icons for label actions in context menu
This commit is contained in:
parent
d4762a4d8d
commit
6dd3833e0f
@ -994,11 +994,11 @@ void TransferListWidget::displayListMenu(const QPoint&) {
|
|||||||
QStringList customLabels = getCustomLabels();
|
QStringList customLabels = getCustomLabels();
|
||||||
QList<QAction*> labelActions;
|
QList<QAction*> labelActions;
|
||||||
QMenu *labelMenu = listMenu.addMenu(QIcon(":/Icons/oxygen/feed-subscribe.png"), "Label");
|
QMenu *labelMenu = listMenu.addMenu(QIcon(":/Icons/oxygen/feed-subscribe.png"), "Label");
|
||||||
labelActions << labelMenu->addAction(tr("New..."));
|
labelActions << labelMenu->addAction(QIcon(":/Icons/oxygen/list-add.png"), tr("New..."));
|
||||||
labelActions << labelMenu->addAction(tr("Reset"));
|
labelActions << labelMenu->addAction(QIcon(":/Icons/oxygen/edit-clear.png"), tr("Reset"));
|
||||||
labelMenu->addSeparator();
|
labelMenu->addSeparator();
|
||||||
foreach(const QString &label, customLabels) {
|
foreach(const QString &label, customLabels) {
|
||||||
labelActions << labelMenu->addAction(label);
|
labelActions << labelMenu->addAction(QIcon(":/Icons/oxygen/folder.png"), label);
|
||||||
}
|
}
|
||||||
listMenu.addSeparator();
|
listMenu.addSeparator();
|
||||||
if(one_not_seed)
|
if(one_not_seed)
|
||||||
|
Loading…
Reference in New Issue
Block a user