From 73f461432f43eac161926a4d477094d605aed517 Mon Sep 17 00:00:00 2001 From: dorian Date: Thu, 4 Jul 2019 23:23:44 +0200 Subject: [PATCH] some finishing touches to the speed final flowchart --- resources/qml/Widgets/ResultWidget.qml | 22 +++++++++++++++------- 1 file changed, 15 insertions(+), 7 deletions(-) diff --git a/resources/qml/Widgets/ResultWidget.qml b/resources/qml/Widgets/ResultWidget.qml index 4207151..1c7e69c 100644 --- a/resources/qml/Widgets/ResultWidget.qml +++ b/resources/qml/Widgets/ResultWidget.qml @@ -50,6 +50,7 @@ DataListView { onClicked: { if(speedFlowChartBackgroundRect.state === "hidden"){ speedFlowChartBackgroundRect.state ="visible" + control.positionViewAtBeginning() } else { speedFlowChartBackgroundRect.state = "hidden" @@ -511,7 +512,7 @@ DataListView { width: parent.width / ( generalResRep.model ) height: parent.height - visible: enabled + visible: multiGenResRow.active Rectangle { @@ -686,7 +687,15 @@ DataListView { state: "hidden" - anchors.fill: parent + anchors { + top: parent.top + bottom: parent.bottom + left: parent.right + } + + width: parent.width + height: parent.height + color: Material.background SpeedFlowChart { @@ -710,8 +719,7 @@ DataListView { PropertyChanges { target: speedFlowChartBackgroundRect opacity: 0 - scale: 0.9 - height: 0 + anchors.leftMargin: 0 } }, @@ -720,8 +728,7 @@ DataListView { PropertyChanges { target: speedFlowChartBackgroundRect opacity: 1 - scale: 1 - height: parent.height + anchors.leftMargin: -parent.width } } ] @@ -729,8 +736,9 @@ DataListView { transitions: [ Transition { NumberAnimation { - properties: "opacity,scale" + properties: "opacity,scale,anchors.leftMargin" duration: 200 + easing.type: Easing.InOutQuad } } ]