aboutsummaryrefslogtreecommitdiffstats
path: root/share
diff options
context:
space:
mode:
authorThomas Hartmann <thomas.hartmann@qt.io>2018-01-31 17:10:26 +0100
committerTim Jenssen <tim.jenssen@qt.io>2018-01-31 16:42:05 +0000
commitf2e6fc95609de5ada890fa225c2a988cec066f94 (patch)
tree5baf0e92c3a37117c3d3ed15ccc784b67b9f0e32 /share
parente61ec82b090ebedd8b3263e9b76f5d931cb6eea6 (diff)
QmlDesigner: Add keyframe support to property editor
This patch allows to insert key frames if a timeline is present. Change-Id: I39c8281e5e559a838ad61939d3f2db7c6abcf76b Reviewed-by: Tim Jenssen <tim.jenssen@qt.io>
Diffstat (limited to 'share')
-rw-r--r--share/qtcreator/qmldesigner/propertyEditorQmlSources/imports/HelperWidgets/ExtendedFunctionButton.qml6
1 files changed, 6 insertions, 0 deletions
diff --git a/share/qtcreator/qmldesigner/propertyEditorQmlSources/imports/HelperWidgets/ExtendedFunctionButton.qml b/share/qtcreator/qmldesigner/propertyEditorQmlSources/imports/HelperWidgets/ExtendedFunctionButton.qml
index 492cf2f625..c0177032b7 100644
--- a/share/qtcreator/qmldesigner/propertyEditorQmlSources/imports/HelperWidgets/ExtendedFunctionButton.qml
+++ b/share/qtcreator/qmldesigner/propertyEditorQmlSources/imports/HelperWidgets/ExtendedFunctionButton.qml
@@ -155,6 +155,12 @@ Item {
}
checkable: true
}
+
+ Controls.MenuItem {
+ text: qsTr("Insert keyframe")
+ visible: hasActiveTimeline
+ onTriggered: insertKeyframe(backendValue.name)
+ }
}
}
}