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
290450ef
Commit
290450ef
authored
Nov 09, 2019
by
DonLakeFlyer
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
parent
b0aae4a6
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
19 additions
and
16 deletions
+19
-16
QGCMapPolygonVisuals.qml
src/MissionManager/QGCMapPolygonVisuals.qml
+5
-4
QGCMapPolylineVisuals.qml
src/MissionManager/QGCMapPolylineVisuals.qml
+5
-4
PlanEditToolbar.qml
src/PlanView/PlanEditToolbar.qml
+9
-8
No files found.
src/MissionManager/QGCMapPolygonVisuals.qml
View file @
290450ef
...
...
@@ -516,10 +516,11 @@ Item {
id
:
toolbarComponent
PlanEditToolbar
{
x
:
mapControl
.
centerViewport
.
left
y
:
mapControl
.
centerViewport
.
top
width
:
mapControl
.
centerViewport
.
width
z
:
QGroundControl
.
zOrderMapItems
+
2
anchors.horizontalCenter
:
mapControl
.
left
anchors.horizontalCenterOffset
:
mapControl
.
centerViewport
.
left
+
(
mapControl
.
centerViewport
.
width
/
2
)
y
:
mapControl
.
centerViewport
.
top
z
:
QGroundControl
.
zOrderMapItems
+
2
availableWidth
:
mapControl
.
centerViewport
.
width
QGCButton
{
_horizontalPadding
:
0
...
...
src/MissionManager/QGCMapPolylineVisuals.qml
View file @
290450ef
...
...
@@ -314,10 +314,11 @@ Item {
id
:
toolbarComponent
PlanEditToolbar
{
x
:
mapControl
.
centerViewport
.
left
y
:
mapControl
.
centerViewport
.
top
width
:
mapControl
.
centerViewport
.
width
z
:
QGroundControl
.
zOrderMapItems
+
2
anchors.horizontalCenter
:
mapControl
.
left
anchors.horizontalCenterOffset
:
mapControl
.
centerViewport
.
left
+
(
mapControl
.
centerViewport
.
width
/
2
)
y
:
mapControl
.
centerViewport
.
top
z
:
QGroundControl
.
zOrderMapItems
+
2
availableWidth
:
mapControl
.
centerViewport
.
width
QGCButton
{
_horizontalPadding
:
0
...
...
src/PlanView/PlanEditToolbar.qml
View file @
290450ef
...
...
@@ -14,14 +14,18 @@ import QtQuick.Layouts 1.2
import
QGroundControl
1.0
import
QGroundControl
.
ScreenTools
1.0
import
QGroundControl
.
Controls
1.0
import
QGroundControl
.
Palette
1.0
/// Toolbar used for things like Polygon editing tools
Item
{
width
:
Math
.
min
(
toolsRowLayout
.
width
+
(
_margins
*
2
),
availableWidth
)
height
:
toolsFlickable
.
y
+
toolsFlickable
.
height
+
_margins
z
:
QGroundControl
.
zOrderMapItems
+
2
property
real
_radius
:
ScreenTools
.
defaultFontPixelWidth
/
2
property
real
_margins
:
ScreenTools
.
defaultFontPixelWidth
/
2
property
real
availableWidth
property
real
_radius
:
ScreenTools
.
defaultFontPixelWidth
/
2
property
real
_margins
:
ScreenTools
.
defaultFontPixelWidth
/
2
Component.onCompleted
:
{
// Move the child controls from consumer into the layout control
...
...
@@ -39,8 +43,7 @@ Item {
Rectangle
{
anchors.fill
:
parent
radius
:
_radius
color
:
"
white
"
opacity
:
0.75
color
:
qgcPal
.
globalTheme
===
QGCPalette
.
Light
?
QGroundControl
.
corePlugin
.
options
.
toolbarBackgroundLight
:
QGroundControl
.
corePlugin
.
options
.
toolbarBackgroundDark
}
QGCFlickable
{
...
...
@@ -64,10 +67,8 @@ Item {
id
:
instructionComponent
QGCLabel
{
id
:
instructionLabel
color
:
"
black
"
text
:
_instructionText
Layout.fillWidth
:
true
id
:
instructionLabel
text
:
_instructionText
}
}
}
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