Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
Multimedia
Kdenlive
Commits
47d2146c
Commit
47d2146c
authored
Aug 09, 2021
by
Julius Künzel
Browse files
Fix QWheelEvent::position() not available in Qt < 5.14
parent
a4a3e1a2
Pipeline
#74032
passed with stage
in 8 minutes and 33 seconds
Changes
1
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
src/dialogs/timeremap.cpp
View file @
47d2146c
...
@@ -972,8 +972,11 @@ void RemapView::wheelEvent(QWheelEvent *event)
...
@@ -972,8 +972,11 @@ void RemapView::wheelEvent(QWheelEvent *event)
}
}
int
change
=
event
->
angleDelta
().
y
()
>
0
?
-
1
:
1
;
int
change
=
event
->
angleDelta
().
y
()
>
0
?
-
1
:
1
;
int
pos
=
qBound
(
0
,
m_position
+
change
,
m_duration
-
1
);
int
pos
=
qBound
(
0
,
m_position
+
change
,
m_duration
-
1
);
#if QT_VERSION >= QT_VERSION_CHECK(5, 14, 0)
if
(
event
->
position
().
y
()
<
m_bottomView
)
{
if
(
event
->
position
().
y
()
<
m_bottomView
)
{
#else
if
(
event
->
y
()
<
m_bottomView
)
{
#endif
emit
seekToPos
(
pos
+
m_inFrame
,
-
1
);
emit
seekToPos
(
pos
+
m_inFrame
,
-
1
);
}
else
{
}
else
{
// Wheel on zoom bar, scroll
// Wheel on zoom bar, scroll
...
...
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