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
Valentin Platzgummer
qgroundcontrol
Commits
232a18f8
Commit
232a18f8
authored
Apr 26, 2016
by
Tomaz Canabrava
Browse files
Propertly show / hide the bitmask edit
Signed-off-by:
Tomaz Canabrava
<
tomaz.canabrava@intel.com
>
parent
3adba8e2
Changes
1
Hide whitespace changes
Inline
Side-by-side
src/QmlControls/ParameterEditorDialog.qml
View file @
232a18f8
...
...
@@ -47,7 +47,6 @@ QGCViewDialog {
QGCPalette
{
id
:
qgcPal
;
colorGroupEnabled
:
true
}
function
accept
()
{
/*
if
(
bitmaskEditor
.
visible
)
{
var
value
=
0
;
for
(
var
i
=
0
;
i
<
fact
.
bitmaskValues
.
length
;
++
i
)
{
...
...
@@ -58,8 +57,9 @@ QGCViewDialog {
}
fact
.
value
=
value
;
fact
.
valueChanged
(
fact
.
value
)
hideDialog
();
}
else
*/
if
(
factCombo
.
visible
)
{
else
if
(
factCombo
.
visible
)
{
fact
.
enumIndex
=
factCombo
.
currentIndex
hideDialog
()
}
else
{
...
...
@@ -152,10 +152,11 @@ QGCViewDialog {
Column
{
spacing
:
ScreenTools
.
defaultFontPixelHeight
/
2
visible
:
fact
.
bitmaskStrings
.
length
>
0
?
true
:
false
;
Repeater
{
id
:
bitmaskEditor
model
:
fact
.
bitmaskStrings
delegate
:
QGCCheckBox
{
text
:
modelData
checked
:
fact
.
value
&
fact
.
bitmaskValues
[
index
]
...
...
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