From 3b823c5c2c8af3ae8b2c32f4968b512c8b7c58d8 Mon Sep 17 00:00:00 2001 From: "Javier S. Pedro" Date: Sun, 7 Jul 2013 14:05:04 +0200 Subject: missed two files --- sysinfowatchlet/liveview.qml | 42 ++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 42 insertions(+) create mode 100644 sysinfowatchlet/liveview.qml (limited to 'sysinfowatchlet') 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 + } + } +} -- cgit v1.2.3