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
32471f91
Commit
32471f91
authored
May 04, 2016
by
dogmaphobic
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Done with Mac OS
parent
6abc3443
Changes
6
Hide whitespace changes
Inline
Side-by-side
Showing
6 changed files
with
32 additions
and
35 deletions
+32
-35
ValuesWidget.qml
src/FlightMap/Widgets/ValuesWidget.qml
+12
-14
QGCButton.qml
src/QmlControls/QGCButton.qml
+5
-5
QGCComboBox.qml
src/QmlControls/QGCComboBox.qml
+2
-2
QGCTextField.qml
src/QmlControls/QGCTextField.qml
+1
-1
OfflineMap.qml
src/QtLocationPlugin/QMLControl/OfflineMap.qml
+11
-12
VehicleSummary.qml
src/VehicleSetup/VehicleSummary.qml
+1
-1
No files found.
src/FlightMap/Widgets/ValuesWidget.qml
View file @
32471f91
...
...
@@ -124,7 +124,7 @@ QGCFlickable {
QGCLabel
{
width
:
parent
.
width
horizontalAlignment
:
Text
.
AlignHCenter
font.pointSize
:
ScreenTools
.
smallFontPointSize
*
0.75
font.pointSize
:
ScreenTools
.
isTinyScreen
?
ScreenTools
.
smallFontPointSize
*
0.75
:
ScreenTools
.
smallFontPointSize
fontSizeMode
:
Text
.
HorizontalFit
color
:
textColor
text
:
fact
.
shortDescription
...
...
@@ -139,7 +139,7 @@ QGCFlickable {
QGCLabel
{
width
:
parent
.
width
horizontalAlignment
:
Text
.
AlignHCenter
font.pointSize
:
ScreenTools
.
smallFontPointSize
*
0.75
font.pointSize
:
ScreenTools
.
isTinyScreen
?
ScreenTools
.
smallFontPointSize
*
0.75
:
ScreenTools
.
smallFontPointSize
fontSizeMode
:
Text
.
HorizontalFit
color
:
textColor
text
:
fact
.
units
...
...
@@ -245,20 +245,20 @@ QGCFlickable {
}
QGCCheckBox
{
id
:
_addCheckBox
text
:
factGroup
.
getFact
(
modelData
).
shortDescription
checked
:
_largeCheckBox
.
checked
||
listContains
(
controller
.
smallValues
,
propertyName
)
onClicked
:
updateValues
()
id
:
_addCheckBox
text
:
factGroup
.
getFact
(
modelData
).
shortDescription
checked
:
listContains
(
controller
.
smallValues
,
propertyName
)
||
_largeCheckBox
.
checked
onClicked
:
updateValues
()
Layout.fillWidth
:
true
Layout.minimumWidth
:
ScreenTools
.
defaultFontPixelWidth
*
20
}
QGCCheckBox
{
id
:
_largeCheckBox
text
:
qsTr
(
"
Large
"
)
checked
:
listContains
(
controller
.
largeValues
,
propertyName
)
enabled
:
_addCheckBox
.
checked
onClicked
:
updateValues
()
id
:
_largeCheckBox
text
:
qsTr
(
"
Large
"
)
checked
:
listContains
(
controller
.
largeValues
,
propertyName
)
enabled
:
_addCheckBox
.
checked
onClicked
:
updateValues
()
}
}
}
...
...
@@ -267,12 +267,10 @@ QGCFlickable {
Repeater
{
model
:
factGroup
?
factGroup
.
factGroupNames
:
0
Loader
{
sourceComponent
:
factGroupList
property
var
factGroup
:
_root
?
_root
.
parent
.
factGroup
.
getFactGroup
(
modelData
)
:
undefined
property
string
factGroupName
:
_root
?
_root
.
parent
.
factGroupName
+
"
.
"
+
modelData
:
undefined
property
string
factGroupName
:
_root
?
_root
.
parent
.
factGroupName
+
"
.
"
+
modelData
:
""
}
}
}
...
...
src/QmlControls/QGCButton.qml
View file @
32471f91
...
...
@@ -12,7 +12,7 @@ Button {
property
var
_qgcPal
:
QGCPalette
{
colorGroupEnabled
:
enabled
}
property
bool
_showHighlight
:
(
pressed
|
hovered
|
checked
)
&&
!
__forceHoverOff
property
bool
_showBorder
:
_qgcPal
.
globalTheme
==
QGCPalette
.
Light
property
bool
_showBorder
:
_qgcPal
.
globalTheme
==
=
QGCPalette
.
Light
// This fixes the issue with button hover where if a Button is near the edge oa QQuickWidget you can
// move the mouse fast enough such that the MouseArea does not trigger an onExited. This is turn
...
...
@@ -43,7 +43,7 @@ Button {
repeat
:
true
onTriggered
:
{
__forceHoverOff
=
(
__lastGlobalMouseX
!=
ScreenTools
.
mouseX
()
||
__lastGlobalMouseY
!
=
ScreenTools
.
mouseY
());
__forceHoverOff
=
(
__lastGlobalMouseX
!=
=
ScreenTools
.
mouseX
()
||
__lastGlobalMouseY
!=
=
ScreenTools
.
mouseY
());
}
}
...
...
@@ -52,15 +52,15 @@ Button {
padding
{
top
:
4
left
:
4
right
:
control
.
menu
!==
null
?
Math
.
round
(
TextSingleton
.
implicit
Height
*
0.5
)
:
4
right
:
control
.
menu
!==
null
?
Math
.
round
(
ScreenTools
.
defaultFontPixel
Height
*
0.5
)
:
4
bottom
:
4
}
/*! This defines the background of the button. */
background
:
Item
{
property
bool
down
:
control
.
pressed
||
(
control
.
checkable
&&
control
.
checked
)
implicitWidth
:
Math
.
round
(
TextSingleton
.
implicitHeight
*
4.5
)
implicitHeight
:
Math
.
max
(
25
,
Math
.
round
(
TextSingleton
.
implicit
Height
*
1.2
))
implicitWidth
:
Math
.
round
(
ScreenTools
.
defaultFontPixelWidth
*
4.5
)
implicitHeight
:
Math
.
max
(
25
,
Math
.
round
(
ScreenTools
.
defaultFontPixel
Height
*
1.2
))
Rectangle
{
anchors.fill
:
parent
...
...
src/QmlControls/QGCComboBox.qml
View file @
32471f91
...
...
@@ -18,8 +18,8 @@ ComboBox {
control
.
_qgcPal
.
buttonText
background
:
Item
{
implicitWidth
:
Math
.
round
(
TextSingleton
.
implicitHeight
*
4.5
)
implicitHeight
:
Math
.
max
(
25
,
Math
.
round
(
TextSingleton
.
implicit
Height
*
1.2
))
implicitWidth
:
Math
.
round
(
ScreenTools
.
defaultFontPixelWidth
*
4.5
)
implicitHeight
:
Math
.
max
(
25
,
Math
.
round
(
ScreenTools
.
defaultFontPixel
Height
*
1.2
))
Rectangle
{
anchors.fill
:
parent
...
...
src/QmlControls/QGCTextField.qml
View file @
32471f91
...
...
@@ -20,7 +20,7 @@ TextField {
property
var
__qgcPal
:
QGCPalette
{
colorGroupEnabled
:
enabled
}
textColor
:
__qgcPal
.
textFieldText
height
:
Math
.
max
(
25
,
Math
.
round
(
unitsLabel
.
implicit
Height
*
1.2
))
height
:
Math
.
max
(
25
,
Math
.
round
(
ScreenTools
.
defaultFontPixel
Height
*
1.2
))
Label
{
id
:
unitsLabelWidthGenerator
...
...
src/QtLocationPlugin/QMLControl/OfflineMap.qml
View file @
32471f91
...
...
@@ -40,9 +40,9 @@ Rectangle {
anchors.fill
:
parent
anchors.margins
:
ScreenTools
.
defaultFontPixelWidth
property
var
_currentSelection
:
null
property
var
_currentSelection
:
null
property
string
mapKey
:
"
lastMapType
"
property
string
mapKey
:
"
lastMapType
"
property
string
mapType
:
QGroundControl
.
mapEngineManager
.
loadSetting
(
mapKey
,
"
Google Street Map
"
)
property
int
mapMargin
:
(
ScreenTools
.
defaultFontPixelHeight
*
0.2
).
toFixed
(
0
)
...
...
@@ -53,9 +53,9 @@ Rectangle {
property
real
savedZoom
:
3
property
string
savedMapType
:
""
property
real
_newSetMiddleLabel
:
ScreenTools
.
isTinyScreen
?
ScreenTools
.
defaultFontPixelWidth
*
10
:
ScreenTools
.
defaultFontPixelWidth
*
1
4
property
real
_newSetMiddleLabel
:
ScreenTools
.
isTinyScreen
?
ScreenTools
.
defaultFontPixelWidth
*
10
:
ScreenTools
.
defaultFontPixelWidth
*
1
2
property
real
_newSetMiddleField
:
ScreenTools
.
isTinyScreen
?
ScreenTools
.
defaultFontPixelWidth
*
16
:
ScreenTools
.
defaultFontPixelWidth
*
20
property
real
_netSetSliderWidth
:
ScreenTools
.
isTinyScreen
?
ScreenTools
.
defaultFontPixelWidth
*
8
:
ScreenTools
.
defaultFontPixelWidth
*
1
4
property
real
_netSetSliderWidth
:
ScreenTools
.
isTinyScreen
?
ScreenTools
.
defaultFontPixelWidth
*
8
:
ScreenTools
.
defaultFontPixelWidth
*
1
6
property
real
oldlon0
:
0
property
real
oldlon1
:
0
...
...
@@ -1056,7 +1056,7 @@ Rectangle {
}
Rectangle
{
id
:
optionsRect
width
:
optionsGrid
.
width
+
(
ScreenTools
.
defaultFontPixelWidth
*
4
)
width
:
optionsGrid
.
width
+
(
ScreenTools
.
defaultFontPixelWidth
*
4
)
height
:
optionsGrid
.
height
+
(
ScreenTools
.
defaultFontPixelHeight
*
4
)
color
:
qgcPal
.
window
radius
:
ScreenTools
.
defaultFontPixelHeight
*
0.5
...
...
@@ -1089,17 +1089,17 @@ Rectangle {
Item
{
Layout.columnSpan
:
2
Layout.fillWidth
:
true
implicitHeight
:
ScreenTools
.
defaultFontPixelHeight
*
1.5
height
:
ScreenTools
.
defaultFontPixelHeight
*
1.5
QGCLabel
{
anchors.centerIn
:
parent
text
:
qsTr
(
"
Memory cache changes require a restart to take effect.
"
)
font.pointSize
:
ScreenTools
.
defaultFontPointSize
*
0.85
font.pointSize
:
ScreenTools
.
smallFontPointSize
}
}
Rectangle
{
Layout.columnSpan
:
2
Layout.fillWidth
:
true
implicitHeight
:
1
height
:
1
color
:
qgcPal
.
text
}
QGCLabel
{
...
...
@@ -1107,18 +1107,17 @@ Rectangle {
}
QGCTextField
{
id
:
mapBoxToken
Layout.fillWidth
:
true
maximumLength
:
256
implicitWidth
:
ScreenTools
.
defaultFontPixelWidth
*
30
width
:
ScreenTools
.
defaultFontPixelWidth
*
30
}
Item
{
Layout.columnSpan
:
2
Layout.fillWidth
:
true
implicitHeight
:
ScreenTools
.
defaultFontPixelHeight
*
1.5
height
:
ScreenTools
.
defaultFontPixelHeight
*
1.5
QGCLabel
{
anchors.centerIn
:
parent
text
:
qsTr
(
"
With an access token, you can use MapBox Maps.
"
)
font.pointSize
:
ScreenTools
.
defaultFontPointSize
*
0.85
font.pointSize
:
ScreenTools
.
smallFontPointSize
}
}
}
...
...
src/VehicleSetup/VehicleSummary.qml
View file @
32471f91
...
...
@@ -39,7 +39,7 @@ Rectangle {
anchors.leftMargin
:
ScreenTools
.
defaultFontPixelWidth
color
:
qgcPal
.
window
property
real
_minSummaryW
:
ScreenTools
.
defaultFontPixelWidth
*
42
property
real
_minSummaryW
:
ScreenTools
.
defaultFontPixelWidth
*
36
property
real
_summaryBoxWidth
:
_minSummaryW
property
real
_summaryBoxSpace
:
ScreenTools
.
defaultFontPixelWidth
*
2
...
...
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