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
a45b2e6d
Commit
a45b2e6d
authored
Feb 25, 2015
by
Don Gagne
Browse files
Options
Browse Files
Download
Plain Diff
Merge pull request #1268 from DonLakeFlyer/QGCComboBox
QGCComboBox initial implementation
parents
608c8af1
67baa614
Changes
4
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
30 additions
and
0 deletions
+30
-0
qgroundcontrol.qrc
qgroundcontrol.qrc
+2
-0
QGCComboBox.qml
src/QmlControls/QGCComboBox.qml
+10
-0
QmlTest.qml
src/QmlControls/QmlTest.qml
+17
-0
qmldir
src/QmlControls/qmldir
+1
-0
No files found.
qgroundcontrol.qrc
View file @
a45b2e6d
...
...
@@ -253,6 +253,8 @@
<file alias="QGroundControl/Controls/QGCCheckBox.qml">src/QmlControls/QGCCheckBox.qml</file>
<file alias="QGroundControl/Controls/QGCLabel.qml">src/QmlControls/QGCLabel.qml</file>
<file alias="QGroundControl/Controls/QGCTextField.qml">src/QmlControls/QGCTextField.qml</file>
<file alias="QGroundControl/Controls/QGCComboBox.qml">src/QmlControls/QGCComboBox.qml</file>
<file alias="QGroundControl/Controls/arrow-down.png">src/QmlControls/arrow-down.png</file>
<file alias="octo_x.png">files/images/px4/airframes/octo_x.png</file>
...
...
src/QmlControls/QGCComboBox.qml
0 → 100644
View file @
a45b2e6d
import
QtQuick
2.2
import
QtQuick
.
Controls
1.2
import
QtQuick
.
Controls
.
Styles
1.2
import
QGroundControl
.
Palette
1.0
ComboBox
{
property
var
__palette
:
QGCPalette
{
colorGroupEnabled
:
enabled
}
}
src/QmlControls/QmlTest.qml
View file @
a45b2e6d
...
...
@@ -498,6 +498,23 @@ Rectangle {
enabled
:
false
}
// QGCComboBox
Loader
{
sourceComponent
:
ctlRowHeader
property
var
text
:
"
QGCComboBox
"
}
QGCComboBox
{
width
:
100
height
:
20
model
:
[
"
Item 1
"
,
"
Item 2
"
,
"
Item 3
"
]
}
QGCComboBox
{
width
:
100
height
:
20
model
:
[
"
Item 1
"
,
"
Item 2
"
,
"
Item 3
"
]
enabled
:
false
}
// SubMenuButton
Loader
{
sourceComponent
:
ctlRowHeader
...
...
src/QmlControls/qmldir
View file @
a45b2e6d
...
...
@@ -5,3 +5,4 @@ QGCButton 1.0 QGCButton.qml
QGCRadioButton 1.0 QGCRadioButton.qml
QGCCheckBox 1.0 QGCCheckBox.qml
QGCTextField 1.0 QGCTextField.qml
QGCComboBox 1.0 QGCComboBox.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