mirror of
https://github.com/overte-org/overte.git
synced 2025-08-10 15:23:05 +02:00
Finished correcting transition.qml layouts
This commit is contained in:
parent
8c12ab9b76
commit
fc1d9319bd
1 changed files with 10 additions and 3 deletions
|
@ -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"
|
||||||
|
|
Loading…
Reference in a new issue