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
4a3a55e8
Commit
4a3a55e8
authored
Oct 17, 2020
by
Jean-Baptiste Mardelle
Browse files
Fix qml overlay offset on monitor zoom (transform/rotoscoping)
parent
0547233f
Pipeline
#37940
failed with stage
in 63 minutes and 44 seconds
Changes
1
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
src/monitor/glwidget.cpp
View file @
4a3a55e8
...
...
@@ -1315,7 +1315,7 @@ void GLWidget::setOffsetX(int x, int max)
m_offset
.
setX
(
x
);
emit
offsetChanged
();
if
(
rootObject
())
{
rootObject
()
->
setProperty
(
"offsetx"
,
m_zoom
>
1.0
f
?
x
-
max
/
2.0
-
10
:
0
);
rootObject
()
->
setProperty
(
"offsetx"
,
m_zoom
>
1.0
f
?
x
-
max
/
2.0
+
10
*
m_zoom
:
0
);
}
update
();
}
...
...
@@ -1324,7 +1324,7 @@ void GLWidget::setOffsetY(int y, int max)
{
m_offset
.
setY
(
y
);
if
(
rootObject
())
{
rootObject
()
->
setProperty
(
"offsety"
,
m_zoom
>
1.0
f
?
y
-
max
/
2.0
-
10
:
0
);
rootObject
()
->
setProperty
(
"offsety"
,
m_zoom
>
1.0
f
?
y
-
max
/
2.0
+
10
*
m_zoom
:
0
);
}
update
();
}
...
...
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