Commit c62e1fbb authored by Don Gagne's avatar Don Gagne Committed by GitHub

Merge pull request #4606 from dogmaphobic/misc

Root loader
parents 8a71849d f8547877
...@@ -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