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
ef519e92
Unverified
Commit
ef519e92
authored
Jun 21, 2018
by
Don Gagne
Committed by
GitHub
Jun 21, 2018
Browse files
Options
Browse Files
Download
Plain Diff
Merge pull request #6627 from DonLakeFlyer/ComboSize
Fix combo width sizing
parents
d4822bed
f77cab5e
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
9 additions
and
8 deletions
+9
-8
APMPowerComponent.qml
src/AutoPilotPlugins/APM/APMPowerComponent.qml
+3
-4
QGCComboBox.qml
src/QmlControls/QGCComboBox.qml
+6
-4
No files found.
src/AutoPilotPlugins/APM/APMPowerComponent.qml
View file @
ef519e92
...
@@ -214,10 +214,9 @@ SetupPage {
...
@@ -214,10 +214,9 @@ SetupPage {
QGCLabel
{
text
:
qsTr
(
"
Battery monitor:
"
)
}
QGCLabel
{
text
:
qsTr
(
"
Battery monitor:
"
)
}
FactComboBox
{
FactComboBox
{
id
:
monitorCombo
id
:
monitorCombo
Layout.minimumWidth
:
_fieldWidth
fact
:
battMonitor
fact
:
battMonitor
indexModel
:
false
indexModel
:
false
}
}
QGCLabel
{
QGCLabel
{
...
...
src/QmlControls/QGCComboBox.qml
View file @
ef519e92
...
@@ -21,6 +21,8 @@ Button {
...
@@ -21,6 +21,8 @@ Button {
property
var
_qgcPal
:
QGCPalette
{
colorGroupEnabled
:
enabled
}
property
var
_qgcPal
:
QGCPalette
{
colorGroupEnabled
:
enabled
}
property
int
_horizontalPadding
:
ScreenTools
.
defaultFontPixelWidth
property
int
_horizontalPadding
:
ScreenTools
.
defaultFontPixelWidth
property
int
_verticalPadding
:
Math
.
round
(
ScreenTools
.
defaultFontPixelHeight
/
2
)
property
int
_verticalPadding
:
Math
.
round
(
ScreenTools
.
defaultFontPixelHeight
/
2
)
property
real
_dropImageWidth
:
ScreenTools
.
defaultFontPixelHeight
/
2
property
real
_dropImageMargin
:
_dropImageWidth
/
2
property
var
__popup
:
popup
property
var
__popup
:
popup
signal
activated
(
int
index
)
signal
activated
(
int
index
)
...
@@ -44,10 +46,10 @@ Button {
...
@@ -44,10 +46,10 @@ Button {
QGCColoredImage
{
QGCColoredImage
{
id
:
image
id
:
image
width
:
ScreenTools
.
defaultFontPixelHeight
/
2
width
:
_dropImageWidth
height
:
w
idth
height
:
_dropImageW
idth
anchors.verticalCenter
:
parent
.
verticalCenter
anchors.verticalCenter
:
parent
.
verticalCenter
anchors.rightMargin
:
width
/
2
anchors.rightMargin
:
_dropImageMargin
anchors.right
:
parent
.
right
anchors.right
:
parent
.
right
source
:
"
/qmlimages/arrow-down.png
"
source
:
"
/qmlimages/arrow-down.png
"
color
:
control
.
_qgcPal
.
buttonText
color
:
control
.
_qgcPal
.
buttonText
...
@@ -56,7 +58,7 @@ Button {
...
@@ -56,7 +58,7 @@ Button {
/*! This defines the label of the button. */
/*! This defines the label of the button. */
label
:
Item
{
label
:
Item
{
implicitWidth
:
text
.
implicitWidth
implicitWidth
:
text
.
implicitWidth
+
_dropImageWidth
implicitHeight
:
text
.
implicitHeight
implicitHeight
:
text
.
implicitHeight
baselineOffset
:
text
.
y
+
text
.
baselineOffset
baselineOffset
:
text
.
y
+
text
.
baselineOffset
...
...
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