[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:28:31 CEST 2010


vlc/vlc-1.1 | branch: master | Jean-Baptiste Kempf <jb at videolan.org> | Tue Jun  1 16:26:51 2010 +0200| [cd56db576b2dd472c372a14a41a3c3c2f9bb0f2b] | committer: Jean-Baptiste Kempf 

Qt: correctly forward wheeling events on Win32

Closes blocker #3262
(cherry picked from commit d24e45887e24bb45da8c7a55263a47d0bf548da3)

Signed-off-by: Jean-Baptiste Kempf <jb at videolan.org>

> http://git.videolan.org/gitweb.cgi/vlc/vlc-1.1.git/?a=commit;h=cd56db576b2dd472c372a14a41a3c3c2f9bb0f2b
---

 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 988b95d..1d6ce66 100644
--- a/modules/gui/qt4/components/interface_widgets.cpp
+++ b/modules/gui/qt4/components/interface_widgets.cpp
@@ -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;
 }



More information about the vlc-commits mailing list