Skip to content
Snippets Groups Projects
Commit f8547877 authored by Gus Grubba's avatar Gus Grubba
Browse files

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
No related branches found
No related tags found
No related merge requests found
......@@ -264,7 +264,7 @@ QGCView {
anchors.top: parent.top
anchors.bottom: parent.bottom
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"
}
......
......@@ -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
}
}
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment