[vlc-commits] Qt: SoundWidget: use LeftButton only for level changes.

Francois Cartegnie git at videolan.org
Sat Feb 25 20:37:10 CET 2012


vlc | branch: master | Francois Cartegnie <fcvlcdev at free.fr> | Fri Feb 24 19:13:45 2012 +0100| [7dfba6e74c2b26eea3236aefeee3359b9069db0a] | committer: Francois Cartegnie

Qt: SoundWidget: use LeftButton only for level changes.

Allow event propagation of other buttons.

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

 modules/gui/qt4/components/controller_widget.cpp |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)

diff --git a/modules/gui/qt4/components/controller_widget.cpp b/modules/gui/qt4/components/controller_widget.cpp
index 4e945af..a274c24 100644
--- a/modules/gui/qt4/components/controller_widget.cpp
+++ b/modules/gui/qt4/components/controller_widget.cpp
@@ -213,7 +213,7 @@ bool SoundWidget::eventFilter( QObject *obj, QEvent *e )
     if( e->type() == QEvent::MouseButtonPress )
     {
         QMouseEvent *event = static_cast<QMouseEvent*>(e);
-        if( event->button() != Qt::RightButton )
+        if( event->button() == Qt::LeftButton )
         {
             if( volumeSlider->orientation() ==  Qt::Vertical )
             {



More information about the vlc-commits mailing list