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
e5d6dbfa
Commit
e5d6dbfa
authored
Aug 27, 2019
by
Gus Grubba
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
UI Sizing
parent
fe59583d
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
21 additions
and
20 deletions
+21
-20
PairingIndicator.qml
src/ui/toolbar/PairingIndicator.qml
+21
-20
No files found.
src/ui/toolbar/PairingIndicator.qml
View file @
e5d6dbfa
...
...
@@ -439,10 +439,11 @@ Item {
columnSpacing
:
ScreenTools
.
defaultFontPixelWidth
rowSpacing
:
ScreenTools
.
defaultFontPixelHeight
*
0.25
anchors.horizontalCenter
:
parent
.
horizontalCenter
property
var
_pairModel
:
QGroundControl
.
pairingManager
?
QGroundControl
.
pairingManager
.
pairedDeviceNameList
:
[]
Repeater
{
model
:
QGroundControl
.
pairingManager
?
QGroundControl
.
pairingManager
.
pairedDeviceNameList
:
[]
QGCLabel
{
text
:
modelData
model
:
parent
.
_pairModel
delegate
:
QGCLabel
{
text
:
modelData
+
'
'
+
QGroundControl
.
pairingManager
.
pairedDeviceNameList
.
length
Layout.row
:
index
Layout.column
:
0
Layout.minimumWidth
:
ScreenTools
.
defaultFontPixelWidth
*
14
...
...
@@ -450,8 +451,8 @@ Item {
}
}
Repeater
{
model
:
QGroundControl
.
pairingManager
?
QGroundControl
.
pairingManager
.
pairedDeviceNameList
:
[]
QGCButton
{
model
:
parent
.
_pairModel
delegate
:
QGCButton
{
text
:
qsTr
(
"
Connect
"
)
Layout.row
:
index
Layout.column
:
1
...
...
@@ -463,27 +464,27 @@ Item {
}
}
Repeater
{
model
:
QGroundControl
.
pairingManager
?
QGroundControl
.
pairingManager
.
pairedDeviceNameList
:
[]
QGCColoredImage
{
height
:
ScreenTools
.
defaultFontPixelHeight
*
1.5
width
:
height
sourceSize.height
:
height
source
:
"
/res/TrashDelete.svg
"
color
:
qgcPal
.
colorRed
Layout.row
:
index
Layout.column
:
2
model
:
parent
.
_pairModel
delegate
:
QGCColoredImage
{
Layout.preferredWidth
:
ScreenTools
.
defaultFontPixelHeight
*
1.5
Layout.preferredHeight
:
ScreenTools
.
defaultFontPixelHeight
*
1.5
sourceSize.height
:
height
source
:
"
/res/TrashDelete.svg
"
color
:
qgcPal
.
colorRed
Layout.row
:
index
Layout.column
:
2
MouseArea
{
anchors.fill
:
parent
anchors.fill
:
parent
onClicked
:
{
removePrompt
.
open
()
}
}
MessageDialog
{
id
:
removePrompt
title
:
qsTr
(
"
Remove Paired Vehicle
"
)
text
:
qsTr
(
"
Confirm removing %1?
"
).
arg
(
modelData
)
standardButtons
:
StandardButton
.
Yes
|
StandardButton
.
No
onNo
:
removePrompt
.
close
()
id
:
removePrompt
title
:
qsTr
(
"
Remove Paired Vehicle
"
)
text
:
qsTr
(
"
Confirm removing %1?
"
).
arg
(
modelData
)
standardButtons
:
StandardButton
.
Yes
|
StandardButton
.
No
onNo
:
removePrompt
.
close
()
onYes
:
{
QGroundControl
.
pairingManager
.
removePairedDevice
(
modelData
)
removePrompt
.
close
()
...
...
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