aboutsummaryrefslogtreecommitdiff
path: root/components/NetworkStatusItem.qml
diff options
context:
space:
mode:
Diffstat (limited to 'components/NetworkStatusItem.qml')
-rw-r--r--components/NetworkStatusItem.qml41
1 files changed, 41 insertions, 0 deletions
diff --git a/components/NetworkStatusItem.qml b/components/NetworkStatusItem.qml
new file mode 100644
index 00000000..bf6cf303
--- /dev/null
+++ b/components/NetworkStatusItem.qml
@@ -0,0 +1,41 @@
+import QtQuick 2.0
+
+Row {
+ id: item
+ property bool connected: false
+
+ Item {
+ id: iconItem
+ anchors.bottom: parent.bottom
+ width: 50
+ height: 50
+
+ Image {
+ anchors.centerIn: parent
+ source: item.connected ? "../images/statusConnected.png" :
+ "../images/statusDisconnected.png"
+ }
+ }
+
+ Column {
+ anchors.bottom: parent.bottom
+ height: 53
+ spacing: 3
+
+ Text {
+ anchors.left: parent.left
+ font.family: "Arial"
+ font.pixelSize: 12
+ color: "#545454"
+ text: qsTr("Network status")
+ }
+
+ Text {
+ anchors.left: parent.left
+ font.family: "Arial"
+ font.pixelSize: 18
+ color: item.connected ? "#FF6C3B" : "#AAAAAA"
+ text: item.connected ? qsTr("Connected") : qsTr("Disconnected")
+ }
+ }
+}