diff options
author | Jaime van Kessel <nallath@gmail.com> | 2022-03-24 15:55:45 +0300 |
---|---|---|
committer | Jaime van Kessel <nallath@gmail.com> | 2022-03-24 15:56:14 +0300 |
commit | 58a63aed02a69a620b7520ec3f21239f84e49217 (patch) | |
tree | ee50a8429a2c58aa93bd37c7bfd9c60932fffd46 | |
parent | 74eac8f4b9e71185475326fe6ed8a9ff96d173cb (diff) |
Remove "cornerSide", "shadowColor" and "shadowEnabled" from ActionButton
CURA-7810
-rw-r--r-- | resources/qml/ActionButton.qml | 49 |
1 files changed, 1 insertions, 48 deletions
diff --git a/resources/qml/ActionButton.qml b/resources/qml/ActionButton.qml index 5cec567ae4..fece44d287 100644 --- a/resources/qml/ActionButton.qml +++ b/resources/qml/ActionButton.qml @@ -45,49 +45,6 @@ Button // but it can exceed a maximum, then this value have to be set. property int maximumWidth: 0 - // These properties are deprecated. - // To (maybe) prevent a major SDK upgrade, mark them as deprecated instead of just outright removing them. - // Note, if you still want rounded corners, use (something based on) Cura.RoundedRectangle. - property alias cornerSide: deprecatedProperties.cornerSide - property alias shadowColor: deprecatedProperties.shadowColor - property alias shadowEnabled: deprecatedProperties.shadowEnabled - - Item - { - id: deprecatedProperties - - visible: false - enabled: false - width: 0 - height: 0 - - property var cornerSide: null - property var shadowColor: null - property var shadowEnabled: null - - onCornerSideChanged: - { - if (cornerSide != null) - { - CuraApplication.writeToLog("w", "'ActionButton.cornerSide' is deprecated since 4.11. Rounded corners can still be made with 'Cura.RoundedRectangle'."); - } - } - onShadowColorChanged: - { - if (shadowColor != null) - { - CuraApplication.writeToLog("w", "'ActionButton.shadowColor' is deprecated since 4.11.") - } - } - onShadowEnabledChanged: - { - if (shadowEnabled != null) - { - CuraApplication.writeToLog("w", "'ActionButton.shadowEnabled' is deprecated since 4.11.") - } - } - } - leftPadding: UM.Theme.getSize("default_margin").width rightPadding: UM.Theme.getSize("default_margin").width height: UM.Theme.getSize("action_button").height @@ -167,16 +124,12 @@ Button } } - background: Cura.RoundedRectangle + background: Rectangle { id: backgroundRect color: button.enabled ? (button.hovered ? button.hoverColor : button.color) : button.disabledColor border.width: UM.Theme.getSize("default_lining").width border.color: button.enabled ? (button.hovered ? button.outlineHoverColor : button.outlineColor) : button.outlineDisabledColor - - // Disable the rounded-ness of this rectangle. We can't use a normal Rectangle here yet, as the API/SDK has only just been deprecated. - radius: 0 - cornerSide: Cura.RoundedRectangle.Direction.None } UM.ToolTip |