Finished correcting transition.qml layouts

This commit is contained in:
Olivier Prat 2018-02-06 16:31:53 +01:00
parent 8c12ab9b76
commit fc1d9319bd

View file

@ -305,9 +305,15 @@ Rectangle {
RowLayout { RowLayout {
Layout.fillWidth: true Layout.fillWidth: true
function evalEvenHeight() {
// Why do we have to do that manually ? cannot seem to find a qml / anchor / layout mode that does that ?
return (height - spacing * (children.length - 1)) / children.length
}
GroupBox { GroupBox {
title: "Noise Animation" title: "Noise Animation"
Layout.fillWidth: true Layout.fillWidth: true
id: animBox
Column { Column {
anchors.left: parent.left anchors.left: parent.left
@ -334,9 +340,10 @@ Rectangle {
PlotPerf { PlotPerf {
title: "Threshold" title: "Threshold"
Layout.fillWidth: true width: 200
height: parent.evalEvenHeight() anchors.top: animBox.top
object: config anchors.bottom : animBox.bottom
object: root.config
valueUnit: "%" valueUnit: "%"
valueScale: 0.01 valueScale: 0.01
valueNumDigits: "1" valueNumDigits: "1"