summaryrefslogtreecommitdiff
path: root/sysinfowatchlet/metawatch-digital.qml
diff options
context:
space:
mode:
authorJavier S. Pedro <maemo@javispedro.com>2012-01-03 18:41:03 +0100
committerJavier S. Pedro <maemo@javispedro.com>2012-01-03 18:41:03 +0100
commit42877713055d098a259ac33f3278336610f22b9b (patch)
tree3eb27b8f04f0962ae5ed83167407fa18462e3bc2 /sysinfowatchlet/metawatch-digital.qml
parente166ea78debb9ef69df2462a1e31d0175ecbe8f3 (diff)
downloadsowatch-42877713055d098a259ac33f3278336610f22b9b.tar.gz
sowatch-42877713055d098a259ac33f3278336610f22b9b.zip
moving sysinfowatchlet qml out of qrc
Diffstat (limited to 'sysinfowatchlet/metawatch-digital.qml')
-rw-r--r--sysinfowatchlet/metawatch-digital.qml55
1 files changed, 32 insertions, 23 deletions
diff --git a/sysinfowatchlet/metawatch-digital.qml b/sysinfowatchlet/metawatch-digital.qml
index 0d840d6..67486ba 100644
--- a/sysinfowatchlet/metawatch-digital.qml
+++ b/sysinfowatchlet/metawatch-digital.qml
@@ -1,4 +1,5 @@
import Qt 4.7
+import com.javispedro.sowatch.metawatch 1.0
Rectangle {
width: 96
@@ -8,39 +9,47 @@ Rectangle {
Column {
anchors.fill: parent
- spacing: 4
- Text {
- text: "Battery: " + batteryLevel + "%"
+ MWTitle {
+ id: title
+ text: qsTr("Phone Info")
}
- Rectangle {
- id: battery
- x: 12
- width: 72
- height: 16
+ Column {
+ spacing: 4
- border.color: "black"
- border.width: 1
+ Text {
+ text: "Battery: " + batteryLevel + "%"
+ }
Rectangle {
- width: (batteryLevel / 100) * parent.width
- height: parent.height
+ id: battery
+ x: 12
+ width: 72
+ height: 16
+
+ border.color: "black"
+ border.width: 1
- color: "black"
+ Rectangle {
+ width: (batteryLevel / 100) * parent.width
+ height: parent.height
+
+ color: "black"
+ }
}
- }
- Text {
- width: parent.width
- text: "Connected to:"
- }
+ Text {
+ width: parent.width
+ text: "Connected to:"
+ }
- Text {
- width: parent.width
- text: networkName
- horizontalAlignment: Text.AlignHCenter
- wrapMode: Text.Wrap
+ Text {
+ width: parent.width
+ text: networkName
+ horizontalAlignment: Text.AlignHCenter
+ wrapMode: Text.Wrap
+ }
}
}
}