Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
V
vlc-2-2
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-2-2
Commits
49d87527
Commit
49d87527
authored
Aug 27, 2012
by
Jean-Baptiste Kempf
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Qt: Ctrl+mousewheel to zoom on playlist
parent
305917c3
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
29 additions
and
6 deletions
+29
-6
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
+1
-0
modules/gui/qt4/components/playlist/views.cpp
modules/gui/qt4/components/playlist/views.cpp
+21
-6
No files found.
modules/gui/qt4/components/playlist/standardpanel.cpp
View file @
49d87527
...
...
@@ -455,6 +455,13 @@ void StandardPLPanel::browseInto()
void
StandardPLPanel
::
wheelEvent
(
QWheelEvent
*
e
)
{
if
(
e
->
modifiers
()
&
Qt
::
ControlModifier
)
{
int
numSteps
=
e
->
delta
()
/
8
/
15
;
if
(
numSteps
>
0
)
increaseZoom
();
else
if
(
numSteps
<
0
)
decreaseZoom
();
}
// Accept this event in order to prevent unwanted volume up/down changes
e
->
accept
();
}
...
...
modules/gui/qt4/components/playlist/standardpanel.hpp
View file @
49d87527
...
...
@@ -72,6 +72,7 @@ public:
int
currentViewIndex
()
const
;
static
QMenu
*
viewSelectionMenu
(
StandardPLPanel
*
obj
);
protected:
PLModel
*
model
;
MLModel
*
mlmodel
;
...
...
modules/gui/qt4/components/playlist/views.cpp
View file @
49d87527
...
...
@@ -344,10 +344,15 @@ bool PlIconView::viewportEvent ( QEvent * event )
event
->
ignore
();
return
true
;
}
else
else
if
(
event
->
type
()
==
QEvent
::
Wheel
)
{
return
QAbstractItemView
::
viewportEvent
(
event
);
QWheelEvent
*
wEvent
=
static_cast
<
QWheelEvent
*>
(
event
);
if
(
wEvent
->
modifiers
()
&
Qt
::
ControlModifier
)
{
event
->
ignore
();
return
true
;
}
}
return
QAbstractItemView
::
viewportEvent
(
event
);
}
PlListView
::
PlListView
(
PLModel
*
,
QWidget
*
parent
)
:
QListView
(
parent
)
...
...
@@ -396,10 +401,15 @@ bool PlListView::viewportEvent ( QEvent * event )
event
->
ignore
();
return
true
;
}
else
else
if
(
event
->
type
()
==
QEvent
::
Wheel
)
{
return
QAbstractItemView
::
viewportEvent
(
event
);
QWheelEvent
*
wEvent
=
static_cast
<
QWheelEvent
*>
(
event
);
if
(
wEvent
->
modifiers
()
&
Qt
::
ControlModifier
)
{
event
->
ignore
();
return
true
;
}
}
return
QAbstractItemView
::
viewportEvent
(
event
);
}
PlTreeView
::
PlTreeView
(
PLModel
*
,
QWidget
*
parent
)
:
QTreeView
(
parent
)
...
...
@@ -560,8 +570,13 @@ bool PicFlowView::viewportEvent ( QEvent * event )
event
->
ignore
();
return
true
;
}
else
else
if
(
event
->
type
()
==
QEvent
::
Wheel
)
{
return
QAbstractItemView
::
viewportEvent
(
event
);
QWheelEvent
*
wEvent
=
static_cast
<
QWheelEvent
*>
(
event
);
if
(
wEvent
->
modifiers
()
&
Qt
::
ControlModifier
)
{
event
->
ignore
();
return
true
;
}
}
return
QAbstractItemView
::
viewportEvent
(
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