aboutsummaryrefslogtreecommitdiffstats
path: root/HomeScreen/qml
diff options
context:
space:
mode:
Diffstat (limited to 'HomeScreen/qml')
-rw-r--r--HomeScreen/qml/Home.qml63
-rwxr-xr-xHomeScreen/qml/images/Home/Install App.pngbin0 -> 6438 bytes
-rwxr-xr-xHomeScreen/qml/images/Home/Logout-01.pngbin8868 -> 6217 bytes
-rwxr-xr-xHomeScreen/qml/images/Home/Open Trunk.pngbin0 -> 5395 bytes
-rwxr-xr-xHomeScreen/qml/images/Home/Update Software.pngbin0 -> 10691 bytes
-rwxr-xr-xHomeScreen/qml/images/Home/View Online.pngbin0 -> 9082 bytes
-rw-r--r--HomeScreen/qml/images/Home/home.qrc4
7 files changed, 67 insertions, 0 deletions
diff --git a/HomeScreen/qml/Home.qml b/HomeScreen/qml/Home.qml
index ed0d949..c44919d 100644
--- a/HomeScreen/qml/Home.qml
+++ b/HomeScreen/qml/Home.qml
@@ -18,6 +18,8 @@
import QtQuick 2.2
import QtQuick.Layouts 1.1
import QtQuick.Controls 1.0
+import QtQuick.Controls 1.4
+import QtQuick.Controls.Styles 1.4
import Home 1.0
Item {
@@ -128,6 +130,19 @@ Item {
function changeFlag(flagImage) {
flagLanguage.source = flagImage
}
+ function setUser(type, auts) {
+ if(type === '') {
+ authorisations.visible = false
+ } else {
+ authorisations.visible = true
+ labelUserType.text = type
+ myModel.clear()
+ for (var i=0; i<auts.length; i++) {
+ if(auts[i] !== '')
+ myModel.append({"name": auts[i]})
+ }
+ }
+ }
GridView {
anchors.centerIn: parent
@@ -179,6 +194,54 @@ Item {
}
}
}
+ ListModel {
+ id: myModel
+ ListElement {
+ name: 'Install App'
+ }
+ ListElement {
+ name: 'Open Trunk'
+ }
+ ListElement {
+ name: 'Update Software'
+ }
+ ListElement {
+ name: 'View Online'
+ }
+ }
+ Item {
+ id: authorisations
+ anchors.fill: parent
+ visible: false
+ GridLayout {
+ id: gridAut
+ columns: 2
+ anchors.bottom: parent.bottom
+ anchors.left: parent.left
+ anchors.bottomMargin: 50
+ anchors.leftMargin: 20
+ Repeater {
+ model: myModel
+ Image {
+ source: './images/' + model.name + '.png'
+ width: sourceSize.width
+ height: sourceSize.height
+ visible: true
+ }
+ }
+ }
+ Label {
+ id: labelUserType
+ anchors.bottom: gridAut.top
+ anchors.bottomMargin: 10
+ anchors.left: gridAut.left
+ color: "white"
+ text: "Owner"
+ font.pixelSize: 30
+ font.family: "Roboto"
+ }
+ }
+
Image {
id: logout
width: sourceSize.width
diff --git a/HomeScreen/qml/images/Home/Install App.png b/HomeScreen/qml/images/Home/Install App.png
new file mode 100755
index 0000000..17da664
--- /dev/null
+++ b/HomeScreen/qml/images/Home/Install App.png
Binary files differ
diff --git a/HomeScreen/qml/images/Home/Logout-01.png b/HomeScreen/qml/images/Home/Logout-01.png
index 0183565..5436ebc 100755
--- a/HomeScreen/qml/images/Home/Logout-01.png
+++ b/HomeScreen/qml/images/Home/Logout-01.png
Binary files differ
diff --git a/HomeScreen/qml/images/Home/Open Trunk.png b/HomeScreen/qml/images/Home/Open Trunk.png
new file mode 100755
index 0000000..8fdb660
--- /dev/null
+++ b/HomeScreen/qml/images/Home/Open Trunk.png
Binary files differ
diff --git a/HomeScreen/qml/images/Home/Update Software.png b/HomeScreen/qml/images/Home/Update Software.png
new file mode 100755
index 0000000..dd107fd
--- /dev/null
+++ b/HomeScreen/qml/images/Home/Update Software.png
Binary files differ
diff --git a/HomeScreen/qml/images/Home/View Online.png b/HomeScreen/qml/images/Home/View Online.png
new file mode 100755
index 0000000..d1fa287
--- /dev/null
+++ b/HomeScreen/qml/images/Home/View Online.png
Binary files differ
diff --git a/HomeScreen/qml/images/Home/home.qrc b/HomeScreen/qml/images/Home/home.qrc
index a9d1dc3..4a02101 100644
--- a/HomeScreen/qml/images/Home/home.qrc
+++ b/HomeScreen/qml/images/Home/home.qrc
@@ -24,5 +24,9 @@
<file>french_flag.png</file>
<file>us_flag.png</file>
<file>Logout-01.png</file>
+ <file>Update Software.png</file>
+ <file>Open Trunk.png</file>
+ <file>Install App.png</file>
+ <file>View Online.png</file>
</qresource>
</RCC>