Browse Source

Added a root loader to help deep nested children to show an element in the middle of the root Window.

QGC4.4
Gus Grubba 8 years ago
parent
commit
f8547877e1
  1. 2
      src/FlightDisplay/FlightDisplayView.qml
  2. 9
      src/ui/MainWindowInner.qml

2
src/FlightDisplay/FlightDisplayView.qml

@ -264,7 +264,7 @@ QGCView {
anchors.top: parent.top anchors.top: parent.top
anchors.bottom: parent.bottom anchors.bottom: parent.bottom
width: height width: height
radius: QGroundControl.videoManager.videoReceiver && QGroundControl.videoManager.videoReceiver.recording ? 0 : height radius: QGroundControl.videoManager && QGroundControl.videoManager.videoReceiver && QGroundControl.videoManager.videoReceiver.recording ? 0 : height
color: "red" color: "red"
} }

9
src/ui/MainWindowInner.qml

@ -530,5 +530,14 @@ Item {
} }
} }
} }
//-------------------------------------------------------------------------
//-- Loader helper for any child, no matter how deep can display an element
// in the middle of the main window.
Loader {
id: rootLoader
anchors.centerIn: parent
}
} }

Loading…
Cancel
Save