mirror of
https://github.com/qbittorrent/qBittorrent.git
synced 2025-12-17 14:08:03 -06:00
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:
@@ -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());
|
||||
|
||||
Reference in New Issue
Block a user