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

Qt: correctly forward wheeling events on Win32

Closes blocker #3262
(cherry picked from commit d24e45887e24bb45da8c7a55263a47d0bf548da3)
Signed-off-by: default avatarJean-Baptiste Kempf <jb@videolan.org>
parent c92c7f57
......@@ -264,6 +264,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