|
|
|
@ -98,8 +98,6 @@ Item {
@@ -98,8 +98,6 @@ Item {
|
|
|
|
|
} |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
onVisibleChanged: _polylineComponent.visible = visible |
|
|
|
|
|
|
|
|
|
Component.onCompleted: { |
|
|
|
|
addVisuals() |
|
|
|
|
if (interactive) { |
|
|
|
@ -175,6 +173,7 @@ Item {
@@ -175,6 +173,7 @@ Item {
|
|
|
|
|
line.width: lineWidth |
|
|
|
|
line.color: lineColor |
|
|
|
|
path: mapPolyline.path |
|
|
|
|
visible: _root.visible |
|
|
|
|
} |
|
|
|
|
} |
|
|
|
|
|
|
|
|
@ -183,31 +182,14 @@ Item {
@@ -183,31 +182,14 @@ Item {
|
|
|
|
|
|
|
|
|
|
MapQuickItem { |
|
|
|
|
id: mapQuickItem |
|
|
|
|
anchorPoint.x: splitHandle.width / 2 |
|
|
|
|
anchorPoint.y: splitHandle.height / 2 |
|
|
|
|
anchorPoint.x: sourceItem.width / 2 |
|
|
|
|
anchorPoint.y: sourceItem.height / 2 |
|
|
|
|
z: _zorderSplitHandle |
|
|
|
|
|
|
|
|
|
property int vertexIndex |
|
|
|
|
|
|
|
|
|
sourceItem: Rectangle { |
|
|
|
|
id: splitHandle |
|
|
|
|
width: ScreenTools.defaultFontPixelHeight * 1.5 |
|
|
|
|
height: width |
|
|
|
|
radius: width / 2 |
|
|
|
|
border.color: "white" |
|
|
|
|
color: "transparent" |
|
|
|
|
opacity: .50 |
|
|
|
|
z: _zorderSplitHandle |
|
|
|
|
|
|
|
|
|
QGCLabel { |
|
|
|
|
anchors.horizontalCenter: parent.horizontalCenter |
|
|
|
|
anchors.verticalCenter: parent.verticalCenter |
|
|
|
|
text: "+" |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
QGCMouseArea { |
|
|
|
|
fillItem: parent |
|
|
|
|
onClicked: mapPolyline.splitSegment(mapQuickItem.vertexIndex) |
|
|
|
|
} |
|
|
|
|
sourceItem: SplitIndicator { |
|
|
|
|
onClicked: mapPolyline.splitSegment(mapQuickItem.vertexIndex) |
|
|
|
|
} |
|
|
|
|
} |
|
|
|
|
} |
|
|
|
|