aboutsummaryrefslogtreecommitdiff
path: root/components/StandardButton.qml
diff options
context:
space:
mode:
authormarcin <z.krzysztoff7@gmail.com>2014-07-09 16:18:48 +0200
committermarcin <z.krzysztoff7@gmail.com>2014-07-09 16:18:48 +0200
commit92c594ca8cefa8ba59dcad1e3f5df170d1880ba0 (patch)
tree236d2647ef6677c887013436f6b0d0cd733ae6ab /components/StandardButton.qml
parent202da4caf9b3b26eda353016bc9f6fc9f2694ae6 (diff)
downloadmonzero-gui-92c594ca8cefa8ba59dcad1e3f5df170d1880ba0.tar.gz
monzero-gui-92c594ca8cefa8ba59dcad1e3f5df170d1880ba0.tar.xz
monzero-gui-92c594ca8cefa8ba59dcad1e3f5df170d1880ba0.zip
dashboard + few tipitem fix + shortcuts
Diffstat (limited to 'components/StandardButton.qml')
-rw-r--r--components/StandardButton.qml8
1 files changed, 8 insertions, 0 deletions
diff --git a/components/StandardButton.qml b/components/StandardButton.qml
index 027356e8..0eeb5c2b 100644
--- a/components/StandardButton.qml
+++ b/components/StandardButton.qml
@@ -5,6 +5,7 @@ Item {
property string shadowColor
property string pressedColor
property string releasedColor
+ property string icon: ""
property string textColor: "#FFFFFF"
property alias text: label.text
signal clicked()
@@ -36,6 +37,13 @@ Item {
elide: Text.ElideRight
font.pixelSize: 12
color: parent.textColor
+ visible: parent.icon === ""
+ }
+
+ Image {
+ anchors.centerIn: parent
+ visible: parent.icon !== ""
+ source: parent.icon
}
MouseArea {