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
368501b3
Commit
368501b3
authored
Mar 23, 2016
by
Don Gagne
Browse files
Options
Browse Files
Download
Plain Diff
Merge pull request #3063 from DonLakeFlyer/ConfirmSlider
Confirm slider: Remove cancel button support
parents
39b220f8
a383c8a4
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
2 additions
and
82 deletions
+2
-82
FlightDisplayViewMap.qml
src/FlightDisplay/FlightDisplayViewMap.qml
+1
-1
FlightDisplayViewWidgets.qml
src/FlightDisplay/FlightDisplayViewWidgets.qml
+0
-36
SliderSwitch.qml
src/QmlControls/SliderSwitch.qml
+1
-45
No files found.
src/FlightDisplay/FlightDisplayViewMap.qml
View file @
368501b3
...
...
@@ -112,7 +112,7 @@ FlightMap {
// GoTo here waypoint
MapQuickItem
{
coordinate
:
_gotoHereCoordinate
visible
:
_
v
ehicle
.
guidedMode
&&
_gotoHereCoordinate
.
isValid
visible
:
_
activeVehicle
&&
_activeV
ehicle
.
guidedMode
&&
_gotoHereCoordinate
.
isValid
z
:
QGroundControl
.
zOrderMapItems
anchorPoint.x
:
sourceItem
.
width
/
2
anchorPoint.y
:
sourceItem
.
height
/
2
...
...
src/FlightDisplay/FlightDisplayViewWidgets.qml
View file @
368501b3
...
...
@@ -429,41 +429,6 @@ Item {
}
}
}
/*
Row {
id: guidedModeConfirm
anchors.margins: _margins
anchors.top: parent.top
anchors.left: parent.left
spacing: _margins
visible: false
QGCLabel {
text: "Confirm " + _guidedModeBar.confirmText + " :"
anchors.verticalCenter: parent.verticalCenter
}
QGCButton {
text: "Yes"
onClicked: {
guidedModeConfirm.visible = false
guidedModeButtons.visible = true
_guidedModeBar.actionConfirmed()
altitudeSlider.visible = false
}
}
QGCButton {
text: "No"
onClicked: {
guidedModeConfirm.visible = false
guidedModeButtons.visible = true
altitudeSlider.visible = false
_flightMap._gotoHereCoordinate = QtPositioning.coordinate()
}
}
}*/
}
// Rectangle - Guided mode buttons
MouseArea
{
...
...
@@ -480,7 +445,6 @@ Item {
anchors.top
:
_guidedModeBar
.
top
anchors.bottom
:
_guidedModeBar
.
bottom
anchors.horizontalCenter
:
parent
.
horizontalCenter
//showReject: true
visible
:
false
z
:
QGroundControl
.
zOrderWidgets
...
...
src/QmlControls/SliderSwitch.qml
View file @
368501b3
...
...
@@ -16,7 +16,6 @@ Rectangle {
signal
reject
///< Action rejected
property
string
confirmText
///< Text for slider
property
bool
showReject
:
false
property
real
_border
:
4
property
real
_diameter
:
height
-
(
_border
*
2
)
...
...
@@ -52,14 +51,6 @@ Rectangle {
source
:
"
/res/ArrowRight.svg
"
}
/*
QGCLabel {
anchors.horizontalCenter: parent.horizontalCenter
anchors.verticalCenter: parent.verticalCenter
text: ">"
}
*/
MouseArea
{
id
:
sliderDragArea
anchors.fill
:
parent
...
...
@@ -69,7 +60,7 @@ Rectangle {
drag.minimumX
:
_border
drag.maximumX
:
_maxXDrag
property
real
_maxXDrag
:
_root
.
width
-
(
(
_diameter
+
_border
)
*
(
showReject
?
2
:
1
)
)
property
real
_maxXDrag
:
_root
.
width
-
(
_diameter
+
_border
)
property
bool
dragActive
:
drag
.
active
onDragActiveChanged
:
{
...
...
@@ -82,39 +73,4 @@ Rectangle {
}
}
}
Rectangle
{
id
:
cancel
anchors.rightMargin
:
_border
anchors.right
:
parent
.
right
anchors.verticalCenter
:
parent
.
verticalCenter
height
:
_diameter
width
:
_diameter
radius
:
_diameter
/
2
color
:
qgcPal
.
windowShade
opacity
:
0.8
visible
:
showReject
Image
{
anchors.centerIn
:
parent
width
:
parent
.
width
*
0.8
height
:
parent
.
height
*
0.8
fillMode
:
Image
.
PreserveAspectFit
smooth
:
true
source
:
"
/res/cancel.svg
"
}
/*
QGCLabel {
anchors.horizontalCenter: parent.horizontalCenter
anchors.verticalCenter: parent.verticalCenter
text: "X"
}
*/
MouseArea
{
anchors.fill
:
parent
onClicked
:
_root
.
reject
()
}
}
}
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