From 989b0c15d56472dd430edb378315d5c40bc91d08 Mon Sep 17 00:00:00 2001 From: "Javier S. Pedro" Date: Tue, 3 Jan 2012 19:04:30 +0100 Subject: adding icons to mw watchlet titles --- .../qml/com/javispedro/sowatch/metawatch/MWTitle.qml | 20 +++++++++++++------- 1 file changed, 13 insertions(+), 7 deletions(-) (limited to 'metawatch/qml') diff --git a/metawatch/qml/com/javispedro/sowatch/metawatch/MWTitle.qml b/metawatch/qml/com/javispedro/sowatch/metawatch/MWTitle.qml index 5369c18..3f31130 100644 --- a/metawatch/qml/com/javispedro/sowatch/metawatch/MWTitle.qml +++ b/metawatch/qml/com/javispedro/sowatch/metawatch/MWTitle.qml @@ -5,13 +5,19 @@ Rectangle { height: 16 property alias text: label.text + property alias icon: image - Row { - anchors.fill: parent - anchors.margins: 1 - Text { - id: label - font.bold: true - } + Image { + id: image + anchors.left: parent.left + anchors.top: parent.top + } + + Text { + id: label + anchors.left: image.right + anchors.leftMargin: 2 + anchors.verticalCenter: parent + font.bold: true } } -- cgit v1.2.3