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
66602063
Commit
66602063
authored
Aug 31, 2020
by
Laurent Montel
😁
Browse files
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
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
Supports
Markdown
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