mirror of
https://github.com/qbittorrent/qBittorrent
synced 2025-07-10 23:42:46 -07:00
Disable certain mouse wheel events in Options dialog
The mouse wheel events for QComboBox & QSpinBox widgets in Options dialog are filtered out.
This commit is contained in:
parent
0b050e2a30
commit
96819f3798
3 changed files with 21 additions and 21 deletions
|
@ -485,10 +485,6 @@ void AdvancedSettings::loadAdvancedSettings()
|
|||
template <typename T>
|
||||
void AdvancedSettings::addRow(int row, const QString &rowText, T* widget)
|
||||
{
|
||||
// ignore mouse wheel event
|
||||
static WheelEventEater filter;
|
||||
widget->installEventFilter(&filter);
|
||||
|
||||
setItem(row, PROPERTY, new QTableWidgetItem(rowText));
|
||||
setCellWidget(row, VALUE, widget);
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue