[vlc-commits] commit: Qt: correctly forward wheeling events on Win32 ( Jean-Baptiste Kempf )
git at videolan.org
git at videolan.org
Tue Jun 1 16:27:25 CEST 2010
vlc | branch: master | Jean-Baptiste Kempf <jb at videolan.org> | Tue Jun 1 16:26:51 2010 +0200| [d24e45887e24bb45da8c7a55263a47d0bf548da3] | committer: Jean-Baptiste Kempf
Qt: correctly forward wheeling events on Win32
Closes blocker #3262
> http://git.videolan.org/gitweb.cgi/vlc.git/?a=commit;h=d24e45887e24bb45da8c7a55263a47d0bf548da3
---
modules/gui/qt4/components/interface_widgets.cpp | 6 ++++++
1 files changed, 6 insertions(+), 0 deletions(-)
diff --git a/modules/gui/qt4/components/interface_widgets.cpp b/modules/gui/qt4/components/interface_widgets.cpp
index fe2ee5f..aec0812 100644
--- a/modules/gui/qt4/components/interface_widgets.cpp
+++ b/modules/gui/qt4/components/interface_widgets.cpp
@@ -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;
}
More information about the vlc-commits
mailing list