diff options
| author | xiphon <xiphon@protonmail.com> | 2018-12-08 21:34:53 +0000 |
|---|---|---|
| committer | xiphon <xiphon@protonmail.com> | 2018-12-09 00:49:23 +0300 |
| commit | 831dc59013a2af28eaae9ee83e1e1811a7ccc090 (patch) | |
| tree | ae0b3355bddf3cfd78cce7d39d783524da386a4b /components | |
| parent | f8a920dc38d1af80148cbc88fb820871e4ba41cf (diff) | |
| download | monzero-gui-831dc59013a2af28eaae9ee83e1e1811a7ccc090.tar.gz monzero-gui-831dc59013a2af28eaae9ee83e1e1811a7ccc090.tar.xz monzero-gui-831dc59013a2af28eaae9ee83e1e1811a7ccc090.zip | |
standard-button: remove redundant 'icon' property
Diffstat (limited to 'components')
| -rw-r--r-- | components/StandardButton.qml | 10 |
1 files changed, 1 insertions, 9 deletions
diff --git a/components/StandardButton.qml b/components/StandardButton.qml index bfb90716..37c4c6a3 100644 --- a/components/StandardButton.qml +++ b/components/StandardButton.qml @@ -35,7 +35,6 @@ Item { id: button property string rightIcon: "" property string rightIconInactive: "" - property string icon: "" property string textColor: button.enabled? MoneroComponents.Style.buttonTextColor: MoneroComponents.Style.buttonTextColorDisabled property string textAlign: rightIcon !== "" ? "left" : "center" property bool small: false @@ -109,15 +108,8 @@ Item { font.bold: true font.pixelSize: buttonArea.pressed ? button.fontSize - 1 : button.fontSize color: button.textColor - visible: button.icon === "" + visible: text !== "" } - - Image { - Layout.alignment: Qt.AlignVCenter | Qt.AlignRight - visible: button.icon !== "" - source: button.icon - } - Image { visible: button.rightIcon !== "" |
