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
0cfc69ce
Unverified
Commit
0cfc69ce
authored
Feb 13, 2020
by
Don Gagne
Committed by
GitHub
Feb 13, 2020
Browse files
Options
Browse Files
Download
Plain Diff
Merge pull request #8329 from dakejahl/pr-enforce_checklist_order
Enforce checklist order property
parents
93e9f597
5d843db7
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
6 additions
and
1 deletion
+6
-1
PreFlightCheckModel.qml
src/QmlControls/PreFlightCheckModel.qml
+6
-1
No files found.
src/QmlControls/PreFlightCheckModel.qml
View file @
0cfc69ce
...
...
@@ -12,12 +12,17 @@ import QtQml.Models 2.1
ObjectModel
{
id
:
_root
property
bool
enforceOrder
:
true
function
reset
()
{
for
(
var
i
=
0
;
i
<
_root
.
count
;
i
++
)
{
var
group
=
_root
.
get
(
i
)
group
.
reset
()
if
(
enforceOrder
)
{
group
.
enabled
=
i
===
0
}
else
{
group
.
enabled
=
true
}
group
.
_checked
=
i
===
0
}
}
...
...
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