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
f8af6b85
Commit
f8af6b85
authored
Oct 05, 2020
by
Pushkar Kukde
Browse files
Implemented suggestion
#795
parent
25ba5eaa
Changes
1
Hide whitespace changes
Inline
Side-by-side
src/titler/titlewidget.cpp
View file @
f8af6b85
...
...
@@ -965,7 +965,7 @@ void TitleWidget::slotAdjustZoom()
if (scalex > scaley) scalex = scaley;
int zoompos = (int)(scalex * 7 + 0.5);*/
graphicsView
->
fitInView
(
m_frameBorder
,
Qt
::
KeepAspectRatio
);
int
zoompos
=
graphicsView
->
matrix
().
m11
()
*
100
;
int
zoompos
=
graphicsView
->
transform
().
m11
()
*
100
;
//
matrix().m11() * 100;
zoom_slider
->
setValue
(
zoompos
);
graphicsView
->
centerOn
(
m_frameBorder
);
}
...
...
@@ -1833,6 +1833,7 @@ void TitleWidget::itemHCenter()
newPos
+=
item
->
pos
().
x
()
-
br
.
left
();
// Check item transformation
item
->
setPos
(
newPos
,
item
->
pos
().
y
());
updateCoordinates
(
item
);
slotAdjustZoom
();
}
}
...
...
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