2 * Copyright (C) 2016 The Qt Company Ltd.
3 * Copyright (C) 2016, 2017 Mentor Graphics Development (Deutschland) GmbH
5 * Licensed under the Apache License, Version 2.0 (the "License");
6 * you may not use this file except in compliance with the License.
7 * You may obtain a copy of the License at
9 * http://www.apache.org/licenses/LICENSE-2.0
11 * Unless required by applicable law or agreed to in writing, software
12 * distributed under the License is distributed on an "AS IS" BASIS,
13 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
14 * See the License for the specific language governing permissions and
15 * limitations under the License.
19 import QtQuick.Window 2.1
20 import QtQuick.Layouts 1.1
25 flags: Qt.FramelessWindowHint
26 width: container.width * container.scale
27 height: container.height * container.scale
32 anchors.centerIn: parent
35 scale: screenInfo.scale_factor()
36 source: './images/AGL_HMI_Blue_Background_NoCar-01.png'
43 Layout.fillWidth: true
44 Layout.preferredHeight: 218
49 Layout.fillWidth: true
50 Layout.fillHeight: true
51 Layout.preferredHeight: 1920 - 218 - 215
58 Layout.fillWidth: true
59 Layout.fillHeight: true
60 Layout.preferredHeight: 215
71 bottomInformation.visible = false
79 anchors.bottom: parent.bottom
83 anchors.centerIn: parent
86 horizontalAlignment: Text.AlignHCenter
94 target: homescreenHandler
96 bottomText.text = info
97 bottomInformation.visible = true
98 informationTimer.restart()
107 onTriggered: notificationItem.visible = false
122 height: parent.height
129 anchors.left: parent.left
130 anchors.leftMargin: 20
131 anchors.verticalCenter: parent.verticalCenter
138 anchors.left: notificationIcon.right
139 anchors.leftMargin: 5
140 anchors.verticalCenter: parent.verticalCenter
148 target: homescreenHandler
149 onShowNotification: {
150 notificationIcon.source = icon_path
151 notificationtext.text = text
152 notificationItem.visible = true
153 notificationTimer.restart()