2022-08-19 15:59:36 +02:00
|
|
|
// Copyright (C) 2021 The Qt Company Ltd.
|
2023-01-04 08:52:22 +01:00
|
|
|
// SPDX-License-Identifier: LicenseRef-Qt-Commercial OR GPL-3.0-only WITH Qt-GPL-exception-1.0
|
2020-02-13 16:11:36 +01:00
|
|
|
|
|
|
|
|
import HelperWidgets 2.0
|
2021-06-21 16:48:19 +02:00
|
|
|
import QtQuick 2.15
|
|
|
|
|
import QtQuick.Layouts 1.15
|
|
|
|
|
import StudioTheme 1.0 as StudioTheme
|
|
|
|
|
|
2020-02-13 16:11:36 +01:00
|
|
|
Column {
|
|
|
|
|
anchors.left: parent.left
|
|
|
|
|
anchors.right: parent.right
|
|
|
|
|
|
|
|
|
|
Section {
|
|
|
|
|
caption: qsTr("Number Animation")
|
2021-06-21 16:48:19 +02:00
|
|
|
|
2020-02-13 16:11:36 +01:00
|
|
|
anchors.left: parent.left
|
|
|
|
|
anchors.right: parent.right
|
|
|
|
|
|
|
|
|
|
SectionLayout {
|
2021-06-21 16:48:19 +02:00
|
|
|
PropertyLabel {
|
2020-02-13 16:11:36 +01:00
|
|
|
text: qsTr("From")
|
2020-07-01 16:33:23 +02:00
|
|
|
tooltip: qsTr("Start value for the animation.")
|
2020-02-13 16:11:36 +01:00
|
|
|
}
|
|
|
|
|
|
|
|
|
|
SecondColumnLayout {
|
|
|
|
|
SpinBox {
|
2021-06-21 16:48:19 +02:00
|
|
|
implicitWidth: StudioTheme.Values.twoControlColumnWidth
|
|
|
|
|
+ StudioTheme.Values.actionIndicatorWidth
|
2020-02-13 16:11:36 +01:00
|
|
|
maximumValue: 9999999
|
|
|
|
|
minimumValue: -1
|
|
|
|
|
backendValue: backendValues.from
|
|
|
|
|
}
|
|
|
|
|
|
2021-06-21 16:48:19 +02:00
|
|
|
ExpandingSpacer {}
|
2020-02-13 16:11:36 +01:00
|
|
|
}
|
|
|
|
|
|
2021-06-21 16:48:19 +02:00
|
|
|
PropertyLabel {
|
2020-02-13 16:11:36 +01:00
|
|
|
text: qsTr("To")
|
2020-07-01 16:33:23 +02:00
|
|
|
tooltip: qsTr("End value for the animation.")
|
2020-02-13 16:11:36 +01:00
|
|
|
}
|
|
|
|
|
|
|
|
|
|
SecondColumnLayout {
|
|
|
|
|
SpinBox {
|
2021-06-21 16:48:19 +02:00
|
|
|
implicitWidth: StudioTheme.Values.twoControlColumnWidth
|
|
|
|
|
+ StudioTheme.Values.actionIndicatorWidth
|
2020-02-13 16:11:36 +01:00
|
|
|
maximumValue: 9999999
|
|
|
|
|
minimumValue: -1
|
|
|
|
|
backendValue: backendValues.to
|
|
|
|
|
}
|
|
|
|
|
|
2021-06-21 16:48:19 +02:00
|
|
|
ExpandingSpacer {}
|
2020-02-13 16:11:36 +01:00
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
|
2021-06-21 16:48:19 +02:00
|
|
|
AnimationTargetSection {}
|
2020-02-13 16:11:36 +01:00
|
|
|
|
2021-06-21 16:48:19 +02:00
|
|
|
AnimationSection { showEasingCurve: true }
|
2020-02-13 16:11:36 +01:00
|
|
|
}
|
|
|
|
|
|