diff options
Diffstat (limited to 'tests/manual/qmlchartproperties/qml/qmlchartproperties/ChartEditorProperties.qml')
-rw-r--r-- | tests/manual/qmlchartproperties/qml/qmlchartproperties/ChartEditorProperties.qml | 20 |
1 files changed, 20 insertions, 0 deletions
diff --git a/tests/manual/qmlchartproperties/qml/qmlchartproperties/ChartEditorProperties.qml b/tests/manual/qmlchartproperties/qml/qmlchartproperties/ChartEditorProperties.qml index 9b0633c5..49fd4bd7 100644 --- a/tests/manual/qmlchartproperties/qml/qmlchartproperties/ChartEditorProperties.qml +++ b/tests/manual/qmlchartproperties/qml/qmlchartproperties/ChartEditorProperties.qml @@ -21,8 +21,16 @@ import QtQuick 2.0 Flow { anchors.fill: parent property variant chart + property variant easingTypes: [Easing.Linear, Easing.InCubic, Easing.OutSine, Easing.OutInBack] + property int easingTypeIndex: 0 flow: Flow.TopToBottom spacing: 5 + + function nextEasingType() { + easingTypeIndex++; + return easingTypes[easingTypeIndex % easingTypes.length]; + } + Button { text: "visible" onClicked: chart.visible = !chart.visible; @@ -44,6 +52,18 @@ Flow { onClicked: chart.animationOptions--; } Button { + text: "animation duration +" + onClicked: chart.animationDuration = chart.animationDuration + 1000; + } + Button { + text: "animation duration -" + onClicked: chart.animationDuration = chart.animationDuration - 1000; + } + Button { + text: "animation curve" + onClicked: chart.animationEasingCurve.type = nextEasingType(); + } + Button { text: "background color" onClicked: chart.backgroundColor = main.nextColor(); } |