summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJavier S. Pedro <maemo@javispedro.com>2013-07-07 14:05:04 +0200
committerJavier S. Pedro <maemo@javispedro.com>2013-07-07 14:05:04 +0200
commit3b823c5c2c8af3ae8b2c32f4968b512c8b7c58d8 (patch)
tree5128eef928feee6706dfd2ebb8d11998cd78be56
parentbf7f7b257a556da8c0e06b81264dbefb92435efe (diff)
downloadsowatch-3b823c5c2c8af3ae8b2c32f4968b512c8b7c58d8.tar.gz
sowatch-3b823c5c2c8af3ae8b2c32f4968b512c8b7c58d8.zip
missed two files
-rw-r--r--liveview/qml/com/javispedro/sowatch/liveview/LVLabel.qml6
-rw-r--r--sysinfowatchlet/liveview.qml42
2 files changed, 48 insertions, 0 deletions
diff --git a/liveview/qml/com/javispedro/sowatch/liveview/LVLabel.qml b/liveview/qml/com/javispedro/sowatch/liveview/LVLabel.qml
new file mode 100644
index 0000000..bd14890
--- /dev/null
+++ b/liveview/qml/com/javispedro/sowatch/liveview/LVLabel.qml
@@ -0,0 +1,6 @@
+import Qt 4.7
+
+Text {
+ font.pixelSize: 18
+ color: "white"
+}
diff --git a/sysinfowatchlet/liveview.qml b/sysinfowatchlet/liveview.qml
new file mode 100644
index 0000000..f5f1850
--- /dev/null
+++ b/sysinfowatchlet/liveview.qml
@@ -0,0 +1,42 @@
+import Qt 4.7
+import com.javispedro.sowatch.liveview 1.0
+
+LVPage {
+ Column {
+ anchors.fill: parent
+ spacing: 2
+
+ LVLabel {
+ text: "Battery: " + batteryLevel + "%"
+ }
+
+ Rectangle {
+ id: battery
+ anchors.horizontalCenter: parent.horizontalCenter
+ width: 72
+ height: 16
+
+ border.color: "white"
+ border.width: 1
+
+ Rectangle {
+ width: (batteryLevel / 100) * parent.width
+ height: parent.height
+
+ color: "white"
+ }
+ }
+
+ LVLabel {
+ width: parent.width
+ text: "Connected to:"
+ }
+
+ LVLabel {
+ width: parent.width
+ text: networkName
+ horizontalAlignment: Text.AlignHCenter
+ wrapMode: Text.Wrap
+ }
+ }
+}