Skip to content
GitLab
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
b5f171bd
Commit
b5f171bd
authored
Jul 02, 2021
by
Julius Künzel
💬
Browse files
Improve default options of the keyframe import dialog
parent
7320c612
Changes
1
Hide whitespace changes
Inline
Side-by-side
src/assets/view/widgets/keyframeimport.cpp
View file @
b5f171bd
...
...
@@ -285,6 +285,14 @@ void KeyframeImport::updateDataDisplay()
if
(
type
==
ParamType
::
KeyframeParam
)
{
// 1 dimensional param.
m_sourceCombo
->
addItem
(
m_dataCombo
->
currentText
(),
ImportRoles
::
SimpleValue
);
// map rotation to rotation by default if possible
if
(
m_dataCombo
->
currentText
()
==
QStringLiteral
(
"rotation"
))
{
int
idx
=
m_targetCombo
->
findText
(
i18n
(
"Rotation"
));
if
(
idx
>
-
1
)
{
m_targetCombo
->
setCurrentIndex
(
idx
);
}
}
updateRange
();
return
;
}
...
...
@@ -300,6 +308,12 @@ void KeyframeImport::updateDataDisplay()
if
(
hDist
>
0
)
{
m_sourceCombo
->
addItem
(
i18n
(
"Height"
),
ImportRoles
::
HeightOnly
);
}
// if available map to Rectangle by default
int
idx
=
m_targetCombo
->
findText
(
i18n
(
"Rectangle"
));
if
(
idx
>
-
1
)
{
m_targetCombo
->
setCurrentIndex
(
idx
);
}
updateRange
();
/*if (!m_inPoint->isValid()) {
m_inPoint->blockSignals(true);
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new 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