Restore default drag behavior in Torrent Content widget

Multi-selection for default LMB action, as before 5.1 update.
Adds option to select grab as the default behavior, for users who don't have the Alt key available.
Holding the Alt key toggles between grab/multi-selection.

PR #23180.
Closes #22686.
This commit is contained in:
nn
2025-09-28 17:58:46 +00:00
committed by GitHub
parent 222d265eec
commit 42786b2afc
7 changed files with 77 additions and 2 deletions

View File

@@ -290,6 +290,8 @@ void OptionsDialog::loadBehaviorTabOptions()
m_ui->checkBoxHideZeroStatusFilters->setChecked(pref->getHideZeroStatusFilters());
m_ui->checkTorrentContentDrag->setChecked(pref->isTorrentContentDragEnabled());
#ifndef Q_OS_WIN
m_ui->checkStartup->setVisible(false);
#endif
@@ -402,6 +404,8 @@ void OptionsDialog::loadBehaviorTabOptions()
connect(m_ui->actionTorrentFnOnDblClBox, qComboBoxCurrentIndexChanged, this, &ThisType::enableApplyButton);
connect(m_ui->checkBoxHideZeroStatusFilters, &QAbstractButton::toggled, this, &ThisType::enableApplyButton);
connect(m_ui->checkTorrentContentDrag, &QAbstractButton::toggled, this, &ThisType::enableApplyButton);
#ifdef Q_OS_WIN
connect(m_ui->checkStartup, &QAbstractButton::toggled, this, &ThisType::enableApplyButton);
#endif
@@ -499,6 +503,8 @@ void OptionsDialog::saveBehaviorTabOptions() const
pref->setHideZeroStatusFilters(m_ui->checkBoxHideZeroStatusFilters->isChecked());
pref->setTorrentContentDragEnabled(m_ui->checkTorrentContentDrag->isChecked());
pref->setSplashScreenDisabled(isSplashScreenDisabled());
pref->setConfirmOnExit(m_ui->checkProgramExitConfirm->isChecked());
pref->setDontConfirmAutoExit(!m_ui->checkProgramAutoExitConfirm->isChecked());