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
3ebe6b4d
Commit
3ebe6b4d
authored
Aug 14, 2017
by
DonLakeFlyer
Browse files
Add centeredLabel support
parent
11371d99
Changes
1
Hide whitespace changes
Inline
Side-by-side
src/QmlControls/QGCComboBox.qml
View file @
3ebe6b4d
...
...
@@ -9,6 +9,7 @@ Button {
id
:
combo
property
real
pointSize
:
ScreenTools
.
defaultFontPointSize
///< Point size for button text
property
bool
centeredLabel
:
false
property
alias
model
:
popupItems
.
model
property
alias
textRole
:
popup
.
textRole
property
alias
currentIndex
:
popup
.
__selectedIndex
...
...
@@ -60,10 +61,12 @@ Button {
baselineOffset
:
text
.
y
+
text
.
baselineOffset
QGCLabel
{
id
:
text
anchors.verticalCenter
:
parent
.
verticalCenter
text
:
control
.
currentText
color
:
control
.
_qgcPal
.
buttonText
id
:
text
anchors.verticalCenter
:
parent
.
verticalCenter
anchors.horizontalCenter
:
centeredLabel
?
parent
.
horizontalCenter
:
undefined
text
:
control
.
currentText
color
:
control
.
_qgcPal
.
buttonText
font.pointSize
:
pointSize
}
}
}
...
...
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