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
fc7ee56d
Commit
fc7ee56d
authored
Aug 15, 2020
by
DonLakeFlyer
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
parent
0c6b6556
Changes
10
Show whitespace changes
Inline
Side-by-side
Showing
10 changed files
with
65 additions
and
121 deletions
+65
-121
APMSafetyComponentSub.qml
src/AutoPilotPlugins/APM/APMSafetyComponentSub.qml
+0
-2
APMTuningComponentCopter.qml
src/AutoPilotPlugins/APM/APMTuningComponentCopter.qml
+0
-4
APMTuningComponentSub.qml
src/AutoPilotPlugins/APM/APMTuningComponentSub.qml
+3
-5
CameraCalcCamera.qml
src/PlanView/CameraCalcCamera.qml
+0
-4
ParameterEditor.qml
src/QmlControls/ParameterEditor.qml
+1
-3
QGCButton.qml
src/QmlControls/QGCButton.qml
+53
-88
AppSettings.qml
src/ui/AppSettings.qml
+1
-3
BluetoothSettings.qml
src/ui/preferences/BluetoothSettings.qml
+3
-4
LinkSettings.qml
src/ui/preferences/LinkSettings.qml
+1
-3
UdpSettings.qml
src/ui/preferences/UdpSettings.qml
+3
-5
No files found.
src/AutoPilotPlugins/APM/APMSafetyComponentSub.qml
View file @
fc7ee56d
...
@@ -61,8 +61,6 @@ SetupPage {
...
@@ -61,8 +61,6 @@ SetupPage {
property
real
_margins
:
ScreenTools
.
defaultFontPixelHeight
property
real
_margins
:
ScreenTools
.
defaultFontPixelHeight
property
bool
_showIcon
:
!
ScreenTools
.
isTinyScreen
property
bool
_showIcon
:
!
ScreenTools
.
isTinyScreen
ExclusiveGroup
{
id
:
fenceActionRadioGroup
}
Column
{
Column
{
spacing
:
_margins
/
2
spacing
:
_margins
/
2
...
...
src/AutoPilotPlugins/APM/APMTuningComponentCopter.qml
View file @
fc7ee56d
...
@@ -59,10 +59,6 @@ SetupPage {
...
@@ -59,10 +59,6 @@ SetupPage {
property
bool
_loadComplete
:
false
property
bool
_loadComplete
:
false
ExclusiveGroup
{
id
:
fenceActionRadioGroup
}
ExclusiveGroup
{
id
:
landLoiterRadioGroup
}
ExclusiveGroup
{
id
:
returnAltRadioGroup
}
Component.onCompleted
:
{
Component.onCompleted
:
{
// We use QtCharts only on Desktop platforms
// We use QtCharts only on Desktop platforms
showAdvanced
=
!
ScreenTools
.
isMobile
showAdvanced
=
!
ScreenTools
.
isMobile
...
...
src/AutoPilotPlugins/APM/APMTuningComponentSub.qml
View file @
fc7ee56d
...
@@ -34,14 +34,12 @@ SetupPage {
...
@@ -34,14 +34,12 @@ SetupPage {
property
real
_margins
:
ScreenTools
.
defaultFontPixelHeight
property
real
_margins
:
ScreenTools
.
defaultFontPixelHeight
ExclusiveGroup
{
id
:
buttonGroup
}
Row
{
Row
{
spacing
:
_margins
spacing
:
_margins
QGCButton
{
QGCButton
{
id
:
atcButton
id
:
atcButton
text
:
qsTr
(
"
Attitude Controller Parameters
"
)
text
:
qsTr
(
"
Attitude Controller Parameters
"
)
exclusiveGroup
:
buttonGroup
autoExclusive
:
true
checked
:
true
checked
:
true
onClicked
:
checked
=
true
onClicked
:
checked
=
true
}
}
...
@@ -49,14 +47,14 @@ SetupPage {
...
@@ -49,14 +47,14 @@ SetupPage {
QGCButton
{
QGCButton
{
id
:
posButton
id
:
posButton
text
:
qsTr
(
"
Position Controller Parameters
"
)
text
:
qsTr
(
"
Position Controller Parameters
"
)
exclusiveGroup
:
buttonGroup
autoExclusive
:
true
onClicked
:
checked
=
true
onClicked
:
checked
=
true
}
}
QGCButton
{
QGCButton
{
id
:
navButton
id
:
navButton
text
:
qsTr
(
"
Waypoint navigation parameters
"
)
text
:
qsTr
(
"
Waypoint navigation parameters
"
)
exclusiveGroup
:
buttonGroup
autoExclusive
:
true
onClicked
:
checked
=
true
onClicked
:
checked
=
true
}
}
}
}
...
...
src/PlanView/CameraCalcCamera.qml
View file @
fc7ee56d
...
@@ -28,10 +28,6 @@ Column {
...
@@ -28,10 +28,6 @@ Column {
QGCPalette
{
id
:
qgcPal
;
colorGroupEnabled
:
true
}
QGCPalette
{
id
:
qgcPal
;
colorGroupEnabled
:
true
}
ExclusiveGroup
{
id
:
cameraOrientationGroup
}
Column
{
Column
{
anchors.left
:
parent
.
left
anchors.left
:
parent
.
left
anchors.right
:
parent
.
right
anchors.right
:
parent
.
right
...
...
src/QmlControls/ParameterEditor.qml
View file @
fc7ee56d
...
@@ -188,8 +188,6 @@ Item {
...
@@ -188,8 +188,6 @@ Item {
}
}
}
}
ExclusiveGroup
{
id
:
buttonGroup
}
Repeater
{
Repeater
{
model
:
categoryHeader
.
checked
?
controller
.
getGroupsForCategory
(
category
)
:
0
model
:
categoryHeader
.
checked
?
controller
.
getGroupsForCategory
(
category
)
:
0
...
@@ -198,7 +196,7 @@ Item {
...
@@ -198,7 +196,7 @@ Item {
text
:
groupName
text
:
groupName
height
:
_rowHeight
height
:
_rowHeight
checked
:
controller
.
currentGroup
===
text
checked
:
controller
.
currentGroup
===
text
exclusiveGroup
:
buttonGroup
autoExclusive
:
true
readonly
property
string
groupName
:
modelData
readonly
property
string
groupName
:
modelData
...
...
src/QmlControls/QGCButton.qml
View file @
fc7ee56d
import
QtQuick
2.3
import
QtQuick
2.3
import
QtQuick
.
Controls
1.
2
import
QtQuick
.
Controls
2.1
2
import
QtQuick
.
Controls
.
Styles
1.4
import
QtQuick
.
Controls
.
Styles
1.4
import
QGroundControl
.
Palette
1.0
import
QGroundControl
.
Palette
1.0
import
QGroundControl
.
ScreenTools
1.0
import
QGroundControl
.
ScreenTools
1.0
Button
{
Button
{
activeFocusOnPress
:
true
id
:
control
hoverEnabled
:
true
topPadding
:
_verticalPadding
bottomPadding
:
_verticalPadding
leftPadding
:
_horizontalPadding
rightPadding
:
_horizontalPadding
focusPolicy
:
Qt
.
ClickFocus
property
bool
primary
:
false
///< primary button for a group of buttons
property
bool
primary
:
false
///< primary button for a group of buttons
property
real
pointSize
:
ScreenTools
.
defaultFontPointSize
///< Point size for button text
property
real
pointSize
:
ScreenTools
.
defaultFontPointSize
///< Point size for button text
property
bool
showBorder
:
_
qgcPal
.
globalTheme
===
QGCPalette
.
Light
property
bool
showBorder
:
qgcPal
.
globalTheme
===
QGCPalette
.
Light
property
bool
iconLeft
:
false
property
bool
iconLeft
:
false
property
real
backRadius
:
0
property
real
backRadius
:
0
property
real
heightFactor
:
0.5
property
real
heightFactor
:
0.5
property
string
iconSource
property
var
_qgcPal
:
QGCPalette
{
colorGroupEnabled
:
enabled
}
property
bool
_showHighlight
:
pressed
|
hovered
|
checked
property
bool
_showHighlight
:
(
pressed
|
hovered
|
checked
)
&&
!
__forceHoverOff
// 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
// cause the hover property to not be cleared correctly.
property
bool
__forceHoverOff
:
false
property
int
__lastGlobalMouseX
:
0
property
int
__lastGlobalMouseY
:
0
property
int
_horizontalPadding
:
ScreenTools
.
defaultFontPixelWidth
property
int
_horizontalPadding
:
ScreenTools
.
defaultFontPixelWidth
property
int
_verticalPadding
:
Math
.
round
(
ScreenTools
.
defaultFontPixelHeight
*
heightFactor
)
property
int
_verticalPadding
:
Math
.
round
(
ScreenTools
.
defaultFontPixelHeight
*
heightFactor
)
Connections
{
QGCPalette
{
id
:
qgcPal
;
colorGroupEnabled
:
enabled
}
target
:
__behavior
onMouseXChanged
:
{
__lastGlobalMouseX
=
ScreenTools
.
mouseX
()
__lastGlobalMouseY
=
ScreenTools
.
mouseY
()
}
onMouseYChanged
:
{
__lastGlobalMouseX
=
ScreenTools
.
mouseX
()
__lastGlobalMouseY
=
ScreenTools
.
mouseY
()
}
onEntered
:
{
__forceHoverOff
=
false
;
hoverTimer
.
start
()
}
onExited
:
{
__forceHoverOff
=
false
;
hoverTimer
.
stop
()
}
}
Timer
{
id
:
hoverTimer
interval
:
250
repeat
:
true
onTriggered
:
{
__forceHoverOff
=
(
__lastGlobalMouseX
!==
ScreenTools
.
mouseX
()
||
__lastGlobalMouseY
!==
ScreenTools
.
mouseY
());
}
}
style
:
ButtonStyle
{
/*! The padding between the background and the label components. */
padding
{
top
:
_verticalPadding
bottom
:
_verticalPadding
left
:
_horizontalPadding
right
:
_horizontalPadding
}
/*! This defines the background of the button. */
background
:
Rectangle
{
background
:
Rectangle
{
id
:
backRect
id
:
backRect
implicitWidth
:
ScreenTools
.
implicitButtonWidth
implicitWidth
:
ScreenTools
.
implicitButtonWidth
implicitHeight
:
ScreenTools
.
implicitButtonHeight
implicitHeight
:
ScreenTools
.
implicitButtonHeight
radius
:
backRadius
radius
:
backRadius
border.width
:
showBorder
?
1
:
0
border.width
:
showBorder
?
1
:
0
border.color
:
_
qgcPal
.
buttonText
border.color
:
qgcPal
.
buttonText
color
:
_showHighlight
?
color
:
_showHighlight
?
control
.
_
qgcPal
.
buttonHighlight
:
qgcPal
.
buttonHighlight
:
(
primary
?
control
.
_qgcPal
.
primaryButton
:
control
.
_
qgcPal
.
button
)
(
primary
?
qgcPal
.
primaryButton
:
qgcPal
.
button
)
}
}
/*! This defines the label of the button. */
contentItem
:
Item
{
label
:
Item
{
implicitWidth
:
text
.
implicitWidth
+
icon
.
width
implicitWidth
:
text
.
implicitWidth
+
icon
.
width
implicitHeight
:
text
.
implicitHeight
implicitHeight
:
text
.
implicitHeight
baselineOffset
:
text
.
y
+
text
.
baselineOffset
baselineOffset
:
text
.
y
+
text
.
baselineOffset
...
@@ -103,9 +69,8 @@ Button {
...
@@ -103,9 +69,8 @@ Button {
font.pointSize
:
pointSize
font.pointSize
:
pointSize
font.family
:
ScreenTools
.
normalFontFamily
font.family
:
ScreenTools
.
normalFontFamily
color
:
_showHighlight
?
color
:
_showHighlight
?
control
.
_qgcPal
.
buttonHighlightText
:
qgcPal
.
buttonHighlightText
:
(
primary
?
control
.
_qgcPal
.
primaryButtonText
:
control
.
_qgcPal
.
buttonText
)
(
primary
?
qgcPal
.
primaryButtonText
:
qgcPal
.
buttonText
)
}
}
}
}
}
}
}
src/ui/AppSettings.qml
View file @
fc7ee56d
...
@@ -49,8 +49,6 @@ Rectangle {
...
@@ -49,8 +49,6 @@ Rectangle {
flickableDirection
:
Flickable
.
VerticalFlick
flickableDirection
:
Flickable
.
VerticalFlick
clip
:
true
clip
:
true
ExclusiveGroup
{
id
:
panelActionGroup
}
ColumnLayout
{
ColumnLayout
{
id
:
buttonColumn
id
:
buttonColumn
spacing
:
_verticalMargin
spacing
:
_verticalMargin
...
@@ -62,7 +60,7 @@ Rectangle {
...
@@ -62,7 +60,7 @@ Rectangle {
QGCButton
{
QGCButton
{
height
:
_buttonHeight
height
:
_buttonHeight
text
:
modelData
.
title
text
:
modelData
.
title
exclusiveGroup
:
panelActionGroup
autoExclusive
:
true
Layout.fillWidth
:
true
Layout.fillWidth
:
true
onClicked
:
{
onClicked
:
{
...
...
src/ui/preferences/BluetoothSettings.qml
View file @
fc7ee56d
...
@@ -25,7 +25,6 @@ Column {
...
@@ -25,7 +25,6 @@ Column {
function
saveSettings
()
{
function
saveSettings
()
{
// No need
// No need
}
}
ExclusiveGroup
{
id
:
linkGroup
}
Row
{
Row
{
spacing
:
ScreenTools
.
defaultFontPixelWidth
spacing
:
ScreenTools
.
defaultFontPixelWidth
QGCLabel
{
QGCLabel
{
...
@@ -82,7 +81,7 @@ Column {
...
@@ -82,7 +81,7 @@ Column {
text
:
modelData
text
:
modelData
width
:
_secondColumn
width
:
_secondColumn
anchors.leftMargin
:
ScreenTools
.
defaultFontPixelWidth
*
2
anchors.leftMargin
:
ScreenTools
.
defaultFontPixelWidth
*
2
exclusiveGroup
:
linkGroup
autoExclusive
:
true
onClicked
:
{
onClicked
:
{
checked
=
true
checked
=
true
if
(
subEditConfig
&&
modelData
!==
""
)
if
(
subEditConfig
&&
modelData
!==
""
)
...
...
src/ui/preferences/LinkSettings.qml
View file @
fc7ee56d
...
@@ -27,8 +27,6 @@ Rectangle {
...
@@ -27,8 +27,6 @@ Rectangle {
property
int
_firstColumn
:
ScreenTools
.
defaultFontPixelWidth
*
12
property
int
_firstColumn
:
ScreenTools
.
defaultFontPixelWidth
*
12
property
int
_secondColumn
:
ScreenTools
.
defaultFontPixelWidth
*
30
property
int
_secondColumn
:
ScreenTools
.
defaultFontPixelWidth
*
30
ExclusiveGroup
{
id
:
linkGroup
}
QGCPalette
{
QGCPalette
{
id
:
qgcPal
id
:
qgcPal
colorGroupEnabled
:
enabled
colorGroupEnabled
:
enabled
...
@@ -65,7 +63,7 @@ Rectangle {
...
@@ -65,7 +63,7 @@ Rectangle {
anchors.horizontalCenter
:
settingsColumn
.
horizontalCenter
anchors.horizontalCenter
:
settingsColumn
.
horizontalCenter
width
:
_linkRoot
.
width
*
0.5
width
:
_linkRoot
.
width
*
0.5
text
:
object
.
name
text
:
object
.
name
exclusiveGroup
:
linkGroup
autoExclusive
:
true
visible
:
!
object
.
dynamic
visible
:
!
object
.
dynamic
onClicked
:
{
onClicked
:
{
checked
=
true
checked
=
true
...
...
src/ui/preferences/UdpSettings.qml
View file @
fc7ee56d
...
@@ -28,8 +28,6 @@ Column {
...
@@ -28,8 +28,6 @@ Column {
property
string
_currentHost
:
""
property
string
_currentHost
:
""
ExclusiveGroup
{
id
:
linkGroup
}
Row
{
Row
{
spacing
:
ScreenTools
.
defaultFontPixelWidth
spacing
:
ScreenTools
.
defaultFontPixelWidth
QGCLabel
{
QGCLabel
{
...
@@ -84,7 +82,7 @@ Column {
...
@@ -84,7 +82,7 @@ Column {
text
:
modelData
text
:
modelData
width
:
_secondColumn
width
:
_secondColumn
anchors.leftMargin
:
ScreenTools
.
defaultFontPixelWidth
*
2
anchors.leftMargin
:
ScreenTools
.
defaultFontPixelWidth
*
2
exclusiveGroup
:
linkGroup
autoExclusive
:
true
onClicked
:
{
onClicked
:
{
checked
=
true
checked
=
true
_udpSetting
.
_currentHost
=
modelData
_udpSetting
.
_currentHost
=
modelData
...
...
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