X-Git-Url: https://gerrit.automotivelinux.org/gerrit/gitweb?a=blobdiff_plain;f=HomeScreen%2Fqml%2FHome.qml;h=ed0d949a906378da4b8d50fff5dc3f6025a24c15;hb=3b90fc6e1d569d568d4158aae700b077e2ad824b;hp=756efb99d58b96433db5aede50da0e80ff9ae465;hpb=4c0c9989d249ef1af027f7fda85a4f2922635044;p=staging%2FHomeScreen.git diff --git a/HomeScreen/qml/Home.qml b/HomeScreen/qml/Home.qml index 756efb9..ed0d949 100644 --- a/HomeScreen/qml/Home.qml +++ b/HomeScreen/qml/Home.qml @@ -24,6 +24,7 @@ Item { id: root property int pid: -1 signal languageChanged + signal disconnect Image { anchors.fill: parent @@ -82,14 +83,15 @@ Item { Text { id: helloText anchors.centerIn: parent - color: "white" - text: "No Authenticated User" + color: 'white' + text: 'No Authenticated User' font.pixelSize: 40 - font.family: "Roboto" + font.family: 'Roboto' SequentialAnimation on font.letterSpacing { id: animation1 loops: 1; NumberAnimation { from: 0; to: 50; easing.type: Easing.InQuad; duration: 3000 } + running: false onRunningChanged: { if(running) { hello.visible = true @@ -103,6 +105,7 @@ Item { SequentialAnimation on opacity { id: animation2 loops: 1; + running: false NumberAnimation { from: 1; to: 0; duration: 2600 } PauseAnimation { duration: 400 } } @@ -176,4 +179,33 @@ Item { } } } + Image { + id: logout + width: sourceSize.width + height: sourceSize.height + anchors.bottom: parent.bottom + anchors.right: parent.right + anchors.bottomMargin: 10 + anchors.rightMargin: 20 + source: './images/Logout-01.png' + visible: true + MouseArea { + anchors.fill: parent + onClicked: { + rotateLogout.start() + disconnect() + helloText.text= 'No Authenticated User' + + } + } + RotationAnimator { + id: rotateLogout + target: logout; + from: 0; + to: 360; + loops: 1 + duration: 500 + running: false + } + } }