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
e8a3af81
Commit
e8a3af81
authored
Dec 19, 2020
by
Juku Trump
Committed by
Jean-Baptiste Mardelle
Jan 03, 2021
Browse files
Fix the integer value of effect parameter's checkbox. Fixes
#880
parent
237ae40b
Changes
1
Hide whitespace changes
Inline
Side-by-side
src/assets/view/widgets/boolparamwidget.cpp
View file @
e8a3af81
...
...
@@ -42,6 +42,11 @@ BoolParamWidget::BoolParamWidget(std::shared_ptr<AssetParameterModel> model, QMo
// emit the signal of the base class when appropriate
connect
(
this
->
m_checkBox
,
&
QCheckBox
::
stateChanged
,
this
,
[
this
](
int
state
)
{
// To represent 'checked' status, Qt uses number '2', but
// the boolean parameters in MLT effects use number '1'
if
(
state
==
2
)
{
state
=
1
;
}
emit
valueChanged
(
m_index
,
QString
::
number
(
state
),
true
);
});
}
...
...
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