Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
What's new
10
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Open sidebar
Multimedia
Kdenlive
Commits
66602063
Commit
66602063
authored
Aug 31, 2020
by
Laurent Montel
😁
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Port away from deprecated Qt::MidButton
parent
e29668a2
Pipeline
#32526
passed with stage
in 17 minutes and 28 seconds
Changes
2
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
3 additions
and
3 deletions
+3
-3
src/effects/effectstack/view/qml/colorwheelitem.cpp
src/effects/effectstack/view/qml/colorwheelitem.cpp
+1
-1
src/widgets/dragvalue.cpp
src/widgets/dragvalue.cpp
+2
-2
No files found.
src/effects/effectstack/view/qml/colorwheelitem.cpp
View file @
66602063
...
...
@@ -90,7 +90,7 @@ ColorWheelItem::ColorWheelItem(QQuickItem *parent)
,
m_defaultValue
(
1
)
,
m_zeroShift
(
0
)
{
setAcceptedMouseButtons
(
Qt
::
LeftButton
|
Qt
::
MidButton
);
setAcceptedMouseButtons
(
Qt
::
LeftButton
|
Qt
::
Mid
dle
Button
);
setAcceptHoverEvents
(
true
);
}
...
...
src/widgets/dragvalue.cpp
View file @
66602063
...
...
@@ -431,7 +431,7 @@ void CustomLabel::mousePressEvent(QMouseEvent *e)
if
(
e
->
button
()
==
Qt
::
LeftButton
)
{
m_dragStartPosition
=
m_dragLastPosition
=
e
->
pos
();
e
->
accept
();
}
else
if
(
e
->
button
()
==
Qt
::
MidButton
)
{
}
else
if
(
e
->
button
()
==
Qt
::
Mid
dle
Button
)
{
emit
resetValue
();
m_dragStartPosition
=
QPoint
(
-
1
,
-
1
);
}
else
{
...
...
@@ -487,7 +487,7 @@ void CustomLabel::mouseMoveEvent(QMouseEvent *e)
void
CustomLabel
::
mouseReleaseEvent
(
QMouseEvent
*
e
)
{
if
(
e
->
button
()
==
Qt
::
MidButton
)
{
if
(
e
->
button
()
==
Qt
::
Mid
dle
Button
)
{
e
->
accept
();
return
;
}
...
...
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