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
8a4426ac
Commit
8a4426ac
authored
Dec 29, 2015
by
Don Gagne
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
New FactBitmask control
parent
50f2056b
Changes
4
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
38 additions
and
6 deletions
+38
-6
qgroundcontrol.qrc
qgroundcontrol.qrc
+1
-0
FactBitmask.qml
src/FactSystem/FactControls/FactBitmask.qml
+30
-0
FactComboBox.qml
src/FactSystem/FactControls/FactComboBox.qml
+1
-1
qmldir
src/FactSystem/FactControls/qmldir
+6
-5
No files found.
qgroundcontrol.qrc
View file @
8a4426ac
...
...
@@ -76,6 +76,7 @@
<file alias="QGroundControl/Controls/VehicleSummaryRow.qml">src/QmlControls/VehicleSummaryRow.qml</file>
<file alias="QGroundControl/Controls/ViewWidget.qml">src/ViewWidgets/ViewWidget.qml</file>
<file alias="QGroundControl/Controls/FactSliderPanel.qml">src/QmlControls/FactSliderPanel.qml</file>
<file alias="QGroundControl/FactControls/FactBitmask.qml">src/FactSystem/FactControls/FactBitmask.qml</file>
<file alias="QGroundControl/FactControls/FactCheckBox.qml">src/FactSystem/FactControls/FactCheckBox.qml</file>
<file alias="QGroundControl/FactControls/FactComboBox.qml">src/FactSystem/FactControls/FactComboBox.qml</file>
<file alias="QGroundControl/FactControls/FactLabel.qml">src/FactSystem/FactControls/FactLabel.qml</file>
...
...
src/FactSystem/FactControls/FactBitmask.qml
0 → 100644
View file @
8a4426ac
import
QtQuick
2.5
import
QtQuick
.
Controls
1.2
import
QGroundControl
.
FactSystem
1.0
import
QGroundControl
.
Palette
1.0
import
QGroundControl
.
Controls
1.0
import
QGroundControl
.
ScreenTools
1.0
Row
{
spacing
:
ScreenTools
.
defaultFontPixelWidth
property
Fact
fact
:
Fact
{
}
Repeater
{
model
:
fact
.
bitmaskStrings
QGCCheckBox
{
text
:
modelData
checked
:
fact
.
value
&
fact
.
bitmaskValues
[
index
]
onClicked
:
{
if
(
checked
)
{
fact
.
value
|=
fact
.
bitmaskValues
[
index
]
}
else
{
fact
.
value
&=
~
fact
.
bitmaskValues
[
index
]
}
}
}
}
}
src/FactSystem/FactControls/FactComboBox.qml
View file @
8a4426ac
...
...
@@ -18,7 +18,7 @@ QGCComboBox {
if
(
indexModel
)
{
fact
.
value
=
index
}
else
{
fact
.
enumIndex
=
index
fact
.
value
=
fact
.
enumValues
[
index
]
}
}
}
src/FactSystem/FactControls/qmldir
View file @
8a4426ac
Module QGroundControl.FactControls
FactPanel 1.0 FactPanel.qml
FactLabel 1.0 FactLabel.qml
FactTextField 1.0 FactTextField.qml
FactCheckBox 1.0 FactCheckBox.qml
FactComboBox 1.0 FactComboBox.qml
\ No newline at end of file
FactBitmask 1.0 FactBitmask.qml
FactCheckBox 1.0 FactCheckBox.qml
FactComboBox 1.0 FactComboBox.qml
FactLabel 1.0 FactLabel.qml
FactPanel 1.0 FactPanel.qml
FactTextField 1.0 FactTextField.qml
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