Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
V
vlc
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
13
Issues
13
List
Boards
Labels
Service Desk
Milestones
Merge Requests
1
Merge Requests
1
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Operations
Operations
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
GSoC
GSoC2018
macOS
vlc
Commits
08948240
Commit
08948240
authored
Apr 19, 2018
by
Hugo Beauzée-Luyssen
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Partial revert "qt: Convert seek slider wheel events to actions"
This partially reverts commit
8314cd6c
.
parent
54bad88f
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
5 additions
and
6 deletions
+5
-6
modules/gui/qt/util/input_slider.cpp
modules/gui/qt/util/input_slider.cpp
+5
-6
No files found.
modules/gui/qt/util/input_slider.cpp
View file @
08948240
...
...
@@ -35,8 +35,6 @@
#include "input_manager.hpp"
#include "imagehelper.hpp"
#include <vlc_actions.h>
#include <QPaintEvent>
#include <QPainter>
#include <QBitmap>
...
...
@@ -403,10 +401,11 @@ void SeekSlider::wheelEvent( QWheelEvent *event )
/* Don't do anything if we are for somehow reason sliding */
if
(
!
isSliding
&&
isEnabled
()
)
{
if
(
event
->
delta
()
>
0
)
var_SetInteger
(
p_intf
->
obj
.
libvlc
,
"key-action"
,
ACTIONID_JUMP_BACKWARD_SHORT
);
else
var_SetInteger
(
p_intf
->
obj
.
libvlc
,
"key-action"
,
ACTIONID_JUMP_FORWARD_SHORT
);
setValue
(
value
()
+
event
->
delta
()
/
12
);
/* 12 = 8 * 15 / 10
Since delta is in 1/8 of ° and mouse have steps of 15 °
and that our slider is in 0.1% and we want one step to be a 1%
increment of position */
emit
sliderDragged
(
value
()
/
static_cast
<
float
>
(
maximum
()
)
);
}
event
->
accept
();
}
...
...
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