From 62c167fc775fb19450ea6f0c9921ec119c4c74ba Mon Sep 17 00:00:00 2001 From: thalieht Date: Mon, 24 Jan 2022 00:15:04 +0200 Subject: [PATCH] Add tooltip to Automatic Torrent Management context menu action --- src/gui/transferlistwidget.cpp | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/gui/transferlistwidget.cpp b/src/gui/transferlistwidget.cpp index ff912e28b..cad5f0928 100644 --- a/src/gui/transferlistwidget.cpp +++ b/src/gui/transferlistwidget.cpp @@ -847,6 +847,7 @@ void TransferListWidget::displayListMenu(const QPoint &) auto *listMenu = new QMenu(this); listMenu->setAttribute(Qt::WA_DeleteOnClose); + listMenu->setToolTipsVisible(true); // Create actions @@ -897,6 +898,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);