Commit f8547877 authored by Gus Grubba's avatar Gus Grubba

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

Added a root loader to help deep nested children to show an element in the middle of the root Window.
parent 0df2d060
...@@ -264,7 +264,7 @@ QGCView { ...@@ -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"
} }
......
...@@ -530,5 +530,14 @@ Item { ...@@ -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
}
} }
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment