some finishing touches to the speed final flowchart

This commit is contained in:
Dorian Zedler 2019-07-04 23:23:44 +02:00
parent bbcd468ec3
commit 73f461432f

View file

@ -50,6 +50,7 @@ DataListView {
onClicked: { onClicked: {
if(speedFlowChartBackgroundRect.state === "hidden"){ if(speedFlowChartBackgroundRect.state === "hidden"){
speedFlowChartBackgroundRect.state ="visible" speedFlowChartBackgroundRect.state ="visible"
control.positionViewAtBeginning()
} }
else { else {
speedFlowChartBackgroundRect.state = "hidden" speedFlowChartBackgroundRect.state = "hidden"
@ -511,7 +512,7 @@ DataListView {
width: parent.width / ( generalResRep.model ) width: parent.width / ( generalResRep.model )
height: parent.height height: parent.height
visible: enabled visible: multiGenResRow.active
Rectangle { Rectangle {
@ -686,7 +687,15 @@ DataListView {
state: "hidden" state: "hidden"
anchors.fill: parent anchors {
top: parent.top
bottom: parent.bottom
left: parent.right
}
width: parent.width
height: parent.height
color: Material.background color: Material.background
SpeedFlowChart { SpeedFlowChart {
@ -710,8 +719,7 @@ DataListView {
PropertyChanges { PropertyChanges {
target: speedFlowChartBackgroundRect target: speedFlowChartBackgroundRect
opacity: 0 opacity: 0
scale: 0.9 anchors.leftMargin: 0
height: 0
} }
}, },
@ -720,8 +728,7 @@ DataListView {
PropertyChanges { PropertyChanges {
target: speedFlowChartBackgroundRect target: speedFlowChartBackgroundRect
opacity: 1 opacity: 1
scale: 1 anchors.leftMargin: -parent.width
height: parent.height
} }
} }
] ]
@ -729,8 +736,9 @@ DataListView {
transitions: [ transitions: [
Transition { Transition {
NumberAnimation { NumberAnimation {
properties: "opacity,scale" properties: "opacity,scale,anchors.leftMargin"
duration: 200 duration: 200
easing.type: Easing.InOutQuad
} }
} }
] ]