forked from qt-creator/qt-creator
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:
committed by
Thomas Hartmann
parent
c086c29872
commit
f849319d11
@@ -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")
|
||||
|
@@ -275,6 +275,7 @@ static QList<QByteArray> prepareNonMcuProperties()
|
||||
{
|
||||
QList<QByteArray> result;
|
||||
|
||||
//Builtins:
|
||||
const QList<QByteArray> itemProperties = {"layer", "opacity", "gradient", "smooth", "antialiasing",
|
||||
"border", "baselineOffset", "focus", "activeFocusOnTab"};
|
||||
const QList<QByteArray> mouseAreaProperties = {"propagateComposedEvents", "preventStealing", "cursorShape",
|
||||
@@ -295,6 +296,19 @@ static QList<QByteArray> prepareNonMcuProperties()
|
||||
"highlightResizeDuration", "preferredHighlightBegin", "layoutDirection",
|
||||
"preferredHighlightEnd", "highlightFollowsCurrentItem", "keyNavigationWraps",
|
||||
"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(mouseAreaProperties);
|
||||
@@ -304,7 +318,16 @@ static QList<QByteArray> 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;
|
||||
}
|
||||
|
Reference in New Issue
Block a user