Browse Source

Merge pull request #3154 from DonLakeFlyer/DynamicBind

Swipe View: Use dynamic binding for height
QGC4.4
Don Gagne 9 years ago
parent
commit
522041de48
  1. 4
      src/FlightMap/Widgets/InstrumentSwipeView.qml

4
src/FlightMap/Widgets/InstrumentSwipeView.qml

@ -87,7 +87,7 @@ Item {
if (mouse.x < xDragStart) { if (mouse.x < xDragStart) {
if (xValuesPageSave == 0) { if (xValuesPageSave == 0) {
valuesPage.x = -valuesPage.width valuesPage.x = -valuesPage.width
_root.height = vibrationPage.height + pageIndicatorRow.anchors.topMargin + pageIndicatorRow.height _root.height = Qt.binding(function() { return vibrationPage.height + pageIndicatorRow.anchors.topMargin + pageIndicatorRow.height } )
valuesPageIndicator.color = "transparent" valuesPageIndicator.color = "transparent"
vibrationPageIndicator.color = textColor vibrationPageIndicator.color = textColor
} else { } else {
@ -96,7 +96,7 @@ Item {
} else { } else {
if (xValuesPageSave != 0) { if (xValuesPageSave != 0) {
valuesPage.x = 0 valuesPage.x = 0
_root.height = valuesPage.height + pageIndicatorRow.anchors.topMargin + pageIndicatorRow.height _root.height = Qt.binding(function() { return valuesPage.height + pageIndicatorRow.anchors.topMargin + pageIndicatorRow.height } )
valuesPageIndicator.color = textColor valuesPageIndicator.color = textColor
vibrationPageIndicator.color = "transparent" vibrationPageIndicator.color = "transparent"
} else { } else {

Loading…
Cancel
Save