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
097b3ad6
Commit
097b3ad6
authored
Oct 08, 2020
by
Pushkar Kukde
Committed by
Jean-Baptiste Mardelle
Oct 08, 2020
Browse files
Implemented suggestion
#795
parent
bb3b4265
Pipeline
#36824
passed with stage
in 24 minutes and 16 seconds
Changes
1
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
src/titler/titlewidget.cpp
View file @
097b3ad6
...
...
@@ -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
;
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
);
graphicsView
->
centerOn
(
m_frameBorder
);
}
}
...
...
Davy Bartoloni
🍕
@bartoloni
·
Oct 08, 2020
Thx! :)
Thx! :)
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