Rename iconOnRightSide to isIconOnRightSide

More accurately represents the type of value that's in this property.

Contributes to issue CURA-5876.
This commit is contained in:
Ghostkeeper 2018-12-04 14:47:34 +01:00
parent ef29fb0cfa
commit 2fdfdaa00b
No known key found for this signature in database
GPG key ID: 86BEF881AE2CF276
2 changed files with 6 additions and 6 deletions

View file

@ -12,7 +12,7 @@ Button
{
id: button
property alias iconSource: buttonIconLeft.source
property var iconOnRightSide: false
property bool isIconOnRightSide: false
property alias textFont: buttonText.font
property alias cornerRadius: backgroundRect.radius
property alias tooltip: tooltip.text
@ -43,7 +43,7 @@ Button
contentItem: Row
{
//Left side icon. Only displayed if !iconOnRightSide.
//Left side icon. Only displayed if !isIconOnRightSide.
UM.RecolorImage
{
id: buttonIconLeft
@ -53,7 +53,7 @@ Button
sourceSize.width: width
sourceSize.height: height
color: button.hovered ? button.textHoverColor : button.textColor
visible: source != "" && !button.iconOnRightSide
visible: source != "" && !button.isIconOnRightSide
anchors.verticalCenter: parent.verticalCenter
}
@ -71,7 +71,7 @@ Button
elide: Text.ElideRight
}
//Right side icon. Only displayed if iconOnRightSide.
//Right side icon. Only displayed if isIconOnRightSide.
UM.RecolorImage
{
id: buttonIconRight
@ -81,7 +81,7 @@ Button
sourceSize.width: width
sourceSize.height: height
color: buttonIconLeft.color
visible: source != "" && button.iconOnRightSide
visible: source != "" && button.isIconOnRightSide
anchors.verticalCenter: buttonIconLeft.verticalCenter
}
}

View file

@ -162,7 +162,7 @@ Cura.ExpandableComponent
anchors.right: parent.right
iconSource: UM.Theme.getIcon("arrow_right")
iconOnRightSide: true
isIconOnRightSide: true
onClicked: popupItem.configuration_method = ConfigurationMenu.ConfigurationMethod.CUSTOM
}