QmlDesigner: Disable more properties for QUL

Turned off Controls properties and Animations.

Task-number: QDS-943
Change-Id: I4b9868734c74f5319fd7d3e66b57d59007300340
Reviewed-by: Thomas Hartmann <thomas.hartmann@qt.io>
This commit is contained in:
Aleksei German
2020-09-03 17:52:49 +02:00
committed by Thomas Hartmann
parent c086c29872
commit f849319d11
2 changed files with 26 additions and 1 deletions

View File

@@ -51,11 +51,13 @@ Section {
Label { Label {
text: qsTr("Paused") text: qsTr("Paused")
tooltip: qsTr("Sets whether the animation is currently paused.") tooltip: qsTr("Sets whether the animation is currently paused.")
disabledState: !backendValues.paused.isAvailable
} }
CheckBox { CheckBox {
text: backendValues.paused.valueToString text: backendValues.paused.valueToString
backendValue: backendValues.paused backendValue: backendValues.paused
enabled: backendValue.isAvailable
} }
Label { Label {
text: qsTr("Loops") text: qsTr("Loops")

View File

@@ -275,6 +275,7 @@ static QList<QByteArray> prepareNonMcuProperties()
{ {
QList<QByteArray> result; QList<QByteArray> result;
//Builtins:
const QList<QByteArray> itemProperties = {"layer", "opacity", "gradient", "smooth", "antialiasing", const QList<QByteArray> itemProperties = {"layer", "opacity", "gradient", "smooth", "antialiasing",
"border", "baselineOffset", "focus", "activeFocusOnTab"}; "border", "baselineOffset", "focus", "activeFocusOnTab"};
const QList<QByteArray> mouseAreaProperties = {"propagateComposedEvents", "preventStealing", "cursorShape", const QList<QByteArray> mouseAreaProperties = {"propagateComposedEvents", "preventStealing", "cursorShape",
@@ -295,6 +296,19 @@ static QList<QByteArray> prepareNonMcuProperties()
"highlightResizeDuration", "preferredHighlightBegin", "layoutDirection", "highlightResizeDuration", "preferredHighlightBegin", "layoutDirection",
"preferredHighlightEnd", "highlightFollowsCurrentItem", "keyNavigationWraps", "preferredHighlightEnd", "highlightFollowsCurrentItem", "keyNavigationWraps",
"snapMode", "highlightMoveVelocity", "highlightResizeVelocity"}; "snapMode", "highlightMoveVelocity", "highlightResizeVelocity"};
//Animations:
const QList<QByteArray> animationProperties = {"paused"};
//QtQuick.Controls:
const QList<QByteArray> controlProperties = {"focusPolicy", "hoverEnabled", "wheelEnabled"};
const QList<QByteArray> abstractButtonProperties = {"display", "autoExclusive"};
const QList<QByteArray> buttonProperties = {"flat", "highlighted"};
const QList<QByteArray> dialProperties = {}; //nothing in propeditor
const QList<QByteArray> progressBarProperties = {"indeterminate"};
const QList<QByteArray> radioButton = {}; //nothing in propeditor
const QList<QByteArray> sliderProperties = {"live", "snapMode", "touchDragThreshold"};
const QList<QByteArray> swipeViewProperties = {}; //nothing in propeditor
const QList<QByteArray> switchProperties = {}; //nothing in propeditor
result.append(itemProperties); result.append(itemProperties);
result.append(mouseAreaProperties); result.append(mouseAreaProperties);
@@ -304,7 +318,16 @@ static QList<QByteArray> prepareNonMcuProperties()
result.append(paddingProperties); result.append(paddingProperties);
result.append(columnRowProperties); result.append(columnRowProperties);
result.append(listViewProperties); 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; return result;
} }