Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
V
vlc
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Redmine
Redmine
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Operations
Operations
Metrics
Environments
Analytics
Analytics
CI / CD
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
videolan
vlc
Commits
87bb0a07
Commit
87bb0a07
authored
Jan 17, 2010
by
Jean-Philippe André
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Qt: Prevent volume up/down on mouseWheel events inside StdPLPanel
parent
8bee2260
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
9 additions
and
0 deletions
+9
-0
modules/gui/qt4/components/playlist/standardpanel.cpp
modules/gui/qt4/components/playlist/standardpanel.cpp
+7
-0
modules/gui/qt4/components/playlist/standardpanel.hpp
modules/gui/qt4/components/playlist/standardpanel.hpp
+2
-0
No files found.
modules/gui/qt4/components/playlist/standardpanel.cpp
View file @
87bb0a07
...
...
@@ -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
();
}
modules/gui/qt4/components/playlist/standardpanel.hpp
View file @
87bb0a07
...
...
@@ -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
);
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment