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
de31d93e
Commit
de31d93e
authored
Feb 27, 2017
by
Don Gagne
Committed by
GitHub
Feb 27, 2017
Browse files
Options
Browse Files
Download
Plain Diff
Merge pull request #4642 from DonLakeFlyer/ControlSizing
Control sizing on mobile
parents
fea29a4a
2dbd8519
Changes
5
Hide whitespace changes
Inline
Side-by-side
Showing
5 changed files
with
26 additions
and
24 deletions
+26
-24
MissionSettingsEditor.qml
src/MissionEditor/MissionSettingsEditor.qml
+1
-5
SurveyItemEditor.qml
src/MissionEditor/SurveyItemEditor.qml
+6
-6
QGCComboBox.qml
src/QmlControls/QGCComboBox.qml
+1
-1
QGCTextField.qml
src/QmlControls/QGCTextField.qml
+2
-1
ToolStrip.qml
src/QmlControls/ToolStrip.qml
+16
-11
No files found.
src/MissionEditor/MissionSettingsEditor.qml
View file @
de31d93e
...
...
@@ -53,10 +53,7 @@ Rectangle {
anchors.top
:
parent
.
top
spacing
:
_margin
QGCLabel
{
text
:
qsTr
(
"
Planned Home Position
"
)
color
:
qgcPal
.
buttonHighlight
}
QGCLabel
{
text
:
qsTr
(
"
Planned Home Position
"
)
}
Rectangle
{
anchors.left
:
parent
.
left
...
...
@@ -96,7 +93,6 @@ Rectangle {
QGCLabel
{
text
:
qsTr
(
"
Vehicle Info
"
)
color
:
qgcPal
.
buttonHighlight
visible
:
_multipleFirmware
}
...
...
src/MissionEditor/SurveyItemEditor.qml
View file @
de31d93e
...
...
@@ -286,7 +286,7 @@ Rectangle {
}
}
QGCLabel
{
text
:
qsTr
(
"
Camera
"
);
color
:
qgcPal
.
buttonHighlight
;
visible
:
gridTypeCombo
.
currentIndex
!==
_gridTypeManual
}
QGCLabel
{
text
:
qsTr
(
"
Camera
"
);
visible
:
gridTypeCombo
.
currentIndex
!==
_gridTypeManual
}
Rectangle
{
anchors.left
:
parent
.
left
...
...
@@ -420,7 +420,7 @@ Rectangle {
}
}
QGCLabel
{
text
:
qsTr
(
"
Grid
"
)
;
color
:
qgcPal
.
buttonHighlight
;
}
QGCLabel
{
text
:
qsTr
(
"
Grid
"
)
}
Rectangle
{
anchors.left
:
parent
.
left
...
...
@@ -523,7 +523,7 @@ Rectangle {
spacing
:
_margin
visible
:
gridTypeCombo
.
currentIndex
==
_gridTypeManual
QGCLabel
{
text
:
qsTr
(
"
Grid
"
)
;
color
:
qgcPal
.
buttonHighlight
;
}
QGCLabel
{
text
:
qsTr
(
"
Grid
"
)
}
Rectangle
{
anchors.left
:
parent
.
left
...
...
@@ -547,7 +547,7 @@ Rectangle {
onClicked
:
missionItem
.
gridAltitudeRelative
=
checked
}
QGCLabel
{
text
:
qsTr
(
"
Camera
"
)
;
color
:
qgcPal
.
buttonHighlight
;
}
QGCLabel
{
text
:
qsTr
(
"
Camera
"
)
}
Rectangle
{
anchors.left
:
parent
.
left
...
...
@@ -578,7 +578,7 @@ Rectangle {
}
}
QGCLabel
{
text
:
qsTr
(
"
Polygon
"
)
;
color
:
qgcPal
.
buttonHighlight
;
}
QGCLabel
{
text
:
qsTr
(
"
Polygon
"
)
}
Rectangle
{
anchors.left
:
parent
.
left
...
...
@@ -621,7 +621,7 @@ Rectangle {
}
}
QGCLabel
{
text
:
qsTr
(
"
Statistics
"
)
;
color
:
qgcPal
.
buttonHighlight
;
}
QGCLabel
{
text
:
qsTr
(
"
Statistics
"
)
}
Rectangle
{
anchors.left
:
parent
.
left
...
...
src/QmlControls/QGCComboBox.qml
View file @
de31d93e
...
...
@@ -19,7 +19,7 @@ ComboBox {
background
:
Item
{
implicitWidth
:
Math
.
round
(
ScreenTools
.
defaultFontPixelWidth
*
4.5
)
implicitHeight
:
ScreenTools
.
isMobile
?
Math
.
max
(
25
,
Math
.
round
(
ScreenTools
.
defaultFontPixelHeight
*
2
))
:
Math
.
max
(
25
,
Math
.
round
(
ScreenTools
.
defaultFontPixelHeight
*
1.2
))
implicitHeight
:
Math
.
round
(
ScreenTools
.
defaultFontPixelHeight
*
(
ScreenTools
.
isMobile
?
2
:
1.2
))
Rectangle
{
anchors.fill
:
parent
...
...
src/QmlControls/QGCTextField.qml
View file @
de31d93e
...
...
@@ -26,7 +26,8 @@ TextField {
QGCPalette
{
id
:
qgcPal
;
colorGroupEnabled
:
enabled
}
textColor
:
qgcPal
.
textFieldText
height
:
Math
.
round
(
Math
.
max
(
25
,
ScreenTools
.
defaultFontPixelHeight
*
(
ScreenTools
.
isMobile
?
2.5
:
1.2
)))
implicitHeight
:
Math
.
round
(
ScreenTools
.
defaultFontPixelHeight
*
(
ScreenTools
.
isMobile
?
2
:
1.2
))
QGCLabel
{
id
:
unitsLabelWidthGenerator
...
...
src/QmlControls/ToolStrip.qml
View file @
de31d93e
...
...
@@ -48,12 +48,13 @@ Rectangle {
}
MouseArea
{
x
:
-
_root
.
x
y
:
-
_root
.
y
width
:
_root
.
parent
.
width
height
:
_root
.
parent
.
height
visible
:
dropPanel
.
visible
onClicked
:
dropPanel
.
hide
()
x
:
-
_root
.
x
y
:
-
_root
.
y
width
:
_root
.
parent
.
width
height
:
_root
.
parent
.
height
visible
:
dropPanel
.
visible
onClicked
:
dropPanel
.
hide
()
preventStealing
:
true
}
Column
{
...
...
@@ -144,11 +145,15 @@ Rectangle {
}
MouseArea
{
anchors.left
:
parent
.
left
anchors.right
:
parent
.
right
anchors.top
:
parent
.
top
height
:
parent
.
height
+
(
_showOptionalElements
?
buttonLabel
.
height
+
buttonColumn
.
spacing
:
0
)
visible
:
_root
.
buttonEnabled
?
_root
.
buttonEnabled
[
index
]
:
true
// Size of mouse area is expanded to make touch easier
anchors.leftMargin
:
buttonStripColumn
.
margins
anchors.rightMargin
:
buttonStripColumn
.
margins
anchors.left
:
parent
.
left
anchors.right
:
parent
.
right
anchors.top
:
parent
.
top
height
:
parent
.
height
+
(
_showOptionalElements
?
buttonLabel
.
height
+
buttonColumn
.
spacing
:
0
)
visible
:
_root
.
buttonEnabled
?
_root
.
buttonEnabled
[
index
]
:
true
preventStealing
:
true
onClicked
:
{
if
(
modelData
.
dropPanelComponent
===
undefined
)
{
...
...
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