Commit d24e4588 authored by Jean-Baptiste Kempf's avatar Jean-Baptiste Kempf

Qt: correctly forward wheeling events on Win32

Closes blocker #3262
parent 8cfa162d
......@@ -270,6 +270,12 @@ bool VideoWidget::eventFilter(QObject *obj, QEvent *event)
emit keyPressed( static_cast<QKeyEvent *>(event) );
return true;
}
else if( event->type() == QEvent::Wheel )
{
int i_vlckey = qtWheelEventToVLCKey( static_cast<QWheelEvent *>(event) );
var_SetInteger( p_intf->p_libvlc, "key-pressed", i_vlckey );
return true;
}
}
return false;
}
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment