Commit 87bb0a07 authored by Jean-Philippe André's avatar Jean-Philippe André

Qt: Prevent volume up/down on mouseWheel events inside StdPLPanel

parent 8bee2260
......@@ -42,6 +42,7 @@
#include <QLabel>
#include <QMenu>
#include <QSignalMapper>
#include <QWheelEvent>
#include <assert.h>
......@@ -354,3 +355,9 @@ bool StandardPLPanel::eventFilter( QObject *obj, QEvent *event )
}
return true;
}
void StandardPLPanel::wheelEvent( QWheelEvent *e )
{
// Accept this event in order to prevent unwanted volume up/down changes
e->accept();
}
......@@ -43,6 +43,7 @@ class QListView;
class PLModel;
class QPushButton;
class QKeyEvent;
class QWheelEvent;
class StandardPLPanel: public QWidget
{
......@@ -56,6 +57,7 @@ protected:
friend class PlaylistWidget;
virtual void keyPressEvent( QKeyEvent *e );
virtual void wheelEvent( QWheelEvent *e );
bool eventFilter(QObject *obj, QEvent *event);
......
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