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
167eaacf
Commit
167eaacf
authored
Dec 19, 2020
by
Juku Trump
Browse files
Fix the integer value of effect parameter's checkbox. Fixes
#880
parent
5eeb81c6
Pipeline
#44785
passed with stage
in 10 minutes and 13 seconds
Changes
1
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
src/assets/view/widgets/boolparamwidget.cpp
View file @
167eaacf
...
...
@@ -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
Supports
Markdown
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