aboutsummaryrefslogtreecommitdiffstats
path: root/share/qtcreator/qmldesigner/propertyEditorQmlSources/QtQuick/AnimationSection.qml
diff options
context:
space:
mode:
Diffstat (limited to 'share/qtcreator/qmldesigner/propertyEditorQmlSources/QtQuick/AnimationSection.qml')
-rw-r--r--share/qtcreator/qmldesigner/propertyEditorQmlSources/QtQuick/AnimationSection.qml20
1 files changed, 20 insertions, 0 deletions
diff --git a/share/qtcreator/qmldesigner/propertyEditorQmlSources/QtQuick/AnimationSection.qml b/share/qtcreator/qmldesigner/propertyEditorQmlSources/QtQuick/AnimationSection.qml
index 9641d74b1b..abf69756fa 100644
--- a/share/qtcreator/qmldesigner/propertyEditorQmlSources/QtQuick/AnimationSection.qml
+++ b/share/qtcreator/qmldesigner/propertyEditorQmlSources/QtQuick/AnimationSection.qml
@@ -26,6 +26,8 @@
import HelperWidgets 2.0
import QtQuick 2.1
import QtQuick.Layouts 1.1
+import StudioTheme 1.0 as StudioTheme
+
Section {
id: section
caption: qsTr("Animation")
@@ -33,6 +35,7 @@ Section {
anchors.right: parent.right
property bool showDuration: true
+ property bool showEasingCurve: false
SectionLayout {
Label {
@@ -100,5 +103,22 @@ Section {
text: backendValues.alwaysRunToEnd.valueToString
backendValue: backendValues.alwaysRunToEnd
}
+
+ Label {
+ visible: section.showEasingCurve
+ text: qsTr("Easing Curve")
+ tooltip: qsTr("Define custom easing curve")
+ }
+
+ BoolButtonRowButton {
+ visible: section.showEasingCurve
+ buttonIcon: StudioTheme.Constants.curveDesigner
+ EasingCurveEditor {
+ id: easingCurveEditor
+ modelNodeBackendProperty: modelNodeBackend
+ }
+ onClicked: easingCurveEditor.runDialog()
+
+ }
}
}