diff --git a/share/qtcreator/qmldesigner/propertyEditorQmlSources/QtQuick/AnimationSection.qml b/share/qtcreator/qmldesigner/propertyEditorQmlSources/QtQuick/AnimationSection.qml index abf69756fab..b117eeb7f93 100644 --- a/share/qtcreator/qmldesigner/propertyEditorQmlSources/QtQuick/AnimationSection.qml +++ b/share/qtcreator/qmldesigner/propertyEditorQmlSources/QtQuick/AnimationSection.qml @@ -51,11 +51,13 @@ Section { Label { text: qsTr("Paused") tooltip: qsTr("Sets whether the animation is currently paused.") + disabledState: !backendValues.paused.isAvailable } CheckBox { text: backendValues.paused.valueToString backendValue: backendValues.paused + enabled: backendValue.isAvailable } Label { text: qsTr("Loops") diff --git a/src/plugins/qmldesigner/components/propertyeditor/propertyeditorvalue.cpp b/src/plugins/qmldesigner/components/propertyeditor/propertyeditorvalue.cpp index d2c0c71f7de..2ecb0fa3b21 100644 --- a/src/plugins/qmldesigner/components/propertyeditor/propertyeditorvalue.cpp +++ b/src/plugins/qmldesigner/components/propertyeditor/propertyeditorvalue.cpp @@ -275,6 +275,7 @@ static QList prepareNonMcuProperties() { QList result; + //Builtins: const QList itemProperties = {"layer", "opacity", "gradient", "smooth", "antialiasing", "border", "baselineOffset", "focus", "activeFocusOnTab"}; const QList mouseAreaProperties = {"propagateComposedEvents", "preventStealing", "cursorShape", @@ -295,6 +296,19 @@ static QList prepareNonMcuProperties() "highlightResizeDuration", "preferredHighlightBegin", "layoutDirection", "preferredHighlightEnd", "highlightFollowsCurrentItem", "keyNavigationWraps", "snapMode", "highlightMoveVelocity", "highlightResizeVelocity"}; + //Animations: + const QList animationProperties = {"paused"}; + + //QtQuick.Controls: + const QList controlProperties = {"focusPolicy", "hoverEnabled", "wheelEnabled"}; + const QList abstractButtonProperties = {"display", "autoExclusive"}; + const QList buttonProperties = {"flat", "highlighted"}; + const QList dialProperties = {}; //nothing in propeditor + const QList progressBarProperties = {"indeterminate"}; + const QList radioButton = {}; //nothing in propeditor + const QList sliderProperties = {"live", "snapMode", "touchDragThreshold"}; + const QList swipeViewProperties = {}; //nothing in propeditor + const QList switchProperties = {}; //nothing in propeditor result.append(itemProperties); result.append(mouseAreaProperties); @@ -304,7 +318,16 @@ static QList prepareNonMcuProperties() result.append(paddingProperties); result.append(columnRowProperties); result.append(listViewProperties); - + result.append(animationProperties); + result.append(controlProperties); + result.append(abstractButtonProperties); + result.append(buttonProperties); + result.append(dialProperties); + result.append(progressBarProperties); + result.append(radioButton); + result.append(sliderProperties); + result.append(swipeViewProperties); + result.append(switchProperties); return result; }