summaryrefslogtreecommitdiff
path: root/metawatch/qml/com/javispedro/sowatch
diff options
context:
space:
mode:
authorJavier S. Pedro <maemo@javispedro.com>2012-01-03 19:04:30 +0100
committerJavier S. Pedro <maemo@javispedro.com>2012-01-03 19:04:30 +0100
commit989b0c15d56472dd430edb378315d5c40bc91d08 (patch)
tree2e3130e161ebd04f019e5b2515e47c619d28373e /metawatch/qml/com/javispedro/sowatch
parent42877713055d098a259ac33f3278336610f22b9b (diff)
downloadsowatch-989b0c15d56472dd430edb378315d5c40bc91d08.tar.gz
sowatch-989b0c15d56472dd430edb378315d5c40bc91d08.zip
adding icons to mw watchlet titles
Diffstat (limited to 'metawatch/qml/com/javispedro/sowatch')
-rw-r--r--metawatch/qml/com/javispedro/sowatch/metawatch/MWTitle.qml20
1 files changed, 13 insertions, 7 deletions
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
}
}