mirror of
https://github.com/qbittorrent/qBittorrent
synced 2025-07-15 01:33:07 -07:00
Set wheel event to accepted only if we handle it
This commit is contained in:
parent
a6c5a90630
commit
e83019bdfa
2 changed files with 4 additions and 4 deletions
|
@ -455,10 +455,10 @@ void PeerListWidget::handleSortColumnChanged(int col)
|
|||
|
||||
void PeerListWidget::wheelEvent(QWheelEvent *event)
|
||||
{
|
||||
event->accept();
|
||||
|
||||
if (event->modifiers() & Qt::ShiftModifier) {
|
||||
// Shift + scroll = horizontal scroll
|
||||
event->accept();
|
||||
|
||||
QWheelEvent scrollHEvent(event->pos(), event->globalPos(), event->delta(), event->buttons(), event->modifiers(), Qt::Horizontal);
|
||||
QTreeView::wheelEvent(&scrollHEvent);
|
||||
return;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue