Add tooltip to Automatic Torrent Management context menu action

PR #16241
This commit is contained in:
thalieht
2022-01-24 00:15:04 +02:00
committed by Vladimir Golovnev
parent 6e0c1e2147
commit 397b7b9407

View File

@@ -850,6 +850,7 @@ void TransferListWidget::displayListMenu(const QPoint &)
auto *listMenu = new QMenu(this);
listMenu->setAttribute(Qt::WA_DeleteOnClose);
listMenu->setToolTipsVisible(true);
// Create actions
@@ -900,6 +901,7 @@ void TransferListWidget::displayListMenu(const QPoint &)
auto *actionFirstLastPiecePrio = new TriStateAction(tr("Download first and last pieces first"), listMenu);
connect(actionFirstLastPiecePrio, &QAction::triggered, this, &TransferListWidget::setSelectedFirstLastPiecePrio);
auto *actionAutoTMM = new TriStateAction(tr("Automatic Torrent Management"), listMenu);
actionAutoTMM->setToolTip(tr("Automatic mode means that various torrent properties (e.g. save path) will be decided by the associated category"));
connect(actionAutoTMM, &QAction::triggered, this, &TransferListWidget::setSelectedAutoTMMEnabled);
auto *actionEditTracker = new QAction(UIThemeManager::instance()->getIcon("edit-rename"), tr("Edit trackers..."), listMenu);
connect(actionEditTracker, &QAction::triggered, this, &TransferListWidget::editTorrentTrackers);