From 92c594ca8cefa8ba59dcad1e3f5df170d1880ba0 Mon Sep 17 00:00:00 2001 From: marcin Date: Wed, 9 Jul 2014 16:18:48 +0200 Subject: dashboard + few tipitem fix + shortcuts --- components/StandardButton.qml | 8 ++++++++ 1 file changed, 8 insertions(+) (limited to 'components/StandardButton.qml') 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 { -- cgit v1.2.3