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
001b843c
Commit
001b843c
authored
Jul 03, 2021
by
Julius Künzel
Browse files
Import keyframes dialog: simplify UI on import of a single keyframe
CCBUG: 439284
parent
107ff773
Changes
1
Hide whitespace changes
Inline
Side-by-side
src/assets/view/widgets/keyframeimport.cpp
View file @
001b843c
...
...
@@ -283,6 +283,16 @@ void KeyframeImport::updateDataDisplay()
{
QString
comboData
=
m_dataCombo
->
currentData
().
toString
();
auto
type
=
m_dataCombo
->
currentData
(
Qt
::
UserRole
+
1
).
value
<
ParamType
>
();
auto
values
=
m_dataCombo
->
currentData
(
Qt
::
UserRole
).
toString
().
split
(
QLatin1Char
(
';'
));
// we do not need all the options if there is only one keyframe
bool
onlyOne
=
values
.
length
()
==
1
;
m_previewLabel
->
setVisible
(
!
onlyOne
);
m_limitKeyframes
->
setVisible
(
!
onlyOne
);
m_limitNumber
->
setVisible
(
!
onlyOne
);
m_inPoint
->
setVisible
(
!
onlyOne
);
m_outPoint
->
setVisible
(
!
onlyOne
);
m_maximas
=
KeyframeModel
::
getRanges
(
comboData
,
m_model
);
m_sourceCombo
->
clear
();
if
(
type
==
ParamType
::
KeyframeParam
)
{
...
...
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