Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Q
qgroundcontrol
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Valentin Platzgummer
qgroundcontrol
Commits
23bf5b00
Commit
23bf5b00
authored
Jun 11, 2016
by
Don Gagne
Committed by
GitHub
Jun 11, 2016
Browse files
Options
Browse Files
Download
Plain Diff
Merge pull request #3527 from DonLakeFlyer/BitmaskEdit
Fix bitmask editing
parents
50650ec8
8e0e785b
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
9 additions
and
9 deletions
+9
-9
ParameterEditorDialog.qml
src/QmlControls/ParameterEditorDialog.qml
+9
-9
No files found.
src/QmlControls/ParameterEditorDialog.qml
View file @
23bf5b00
...
...
@@ -36,11 +36,10 @@ QGCViewDialog {
QGCPalette
{
id
:
qgcPal
;
colorGroupEnabled
:
true
}
function
accept
()
{
/*
if (bitmaskEditor.visible) {
if
(
bitmaskColumn
.
visible
)
{
var
value
=
0
;
for
(
var
i
=
0
;
i
<
fact
.
bitmaskValues
.
length
;
++
i
)
{
var checkbox = bitmask
Edito
r.itemAt(i)
var
checkbox
=
bitmask
Repeate
r
.
itemAt
(
i
)
if
(
checkbox
.
checked
)
{
value
|=
fact
.
bitmaskValues
[
i
];
}
...
...
@@ -48,8 +47,7 @@ QGCViewDialog {
fact
.
value
=
value
;
fact
.
valueChanged
(
fact
.
value
)
hideDialog
();
}
else */
if
(
factCombo
.
visible
)
{
}
else
if
(
factCombo
.
visible
)
{
fact
.
enumIndex
=
factCombo
.
currentIndex
hideDialog
()
}
else
{
...
...
@@ -142,11 +140,13 @@ QGCViewDialog {
}
Column
{
spacing
:
ScreenTools
.
defaultFontPixelHeight
/
2
visible
:
fact
.
bitmaskStrings
.
length
>
0
?
true
:
false
;
id
:
bitmaskColumn
spacing
:
ScreenTools
.
defaultFontPixelHeight
/
2
visible
:
fact
.
bitmaskStrings
.
length
>
0
?
true
:
false
;
Repeater
{
id
:
bitmaskEdito
r
model
:
fact
.
bitmaskStrings
id
:
bitmaskRepeate
r
model
:
fact
.
bitmaskStrings
delegate
:
QGCCheckBox
{
text
:
modelData
...
...
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