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.Layouts 1.1
20 import QtQuick.Controls 1.0
28 property date now: new Date
30 interval: 100; running: true; repeat: true;
31 onTriggered: root.now = new Date
38 Layout.fillWidth: true
39 Layout.fillHeight: true
40 Layout.preferredWidth: 295 - 76
46 Layout.fillWidth: true
47 Layout.fillHeight: true
48 text: Qt.formatDate(now, 'dddd').toUpperCase()
52 verticalAlignment: Text.AlignVCenter
54 // anchors.fill: parent
57 // border.color: 'blue'
63 Layout.fillWidth: true
64 Layout.fillHeight: true
65 text: Qt.formatTime(now, 'h:mm ap').toUpperCase()
69 horizontalAlignment: Text.AlignHCenter
70 verticalAlignment: Text.AlignVCenter
73 Layout.fillWidth: true
74 Layout.fillHeight: true
75 Layout.preferredHeight: 20
77 source: './images/Weather/WeatherIcons_Rain-01.png'
82 font.family: 'Helvetica'
90 Layout.fillWidth: true
91 Layout.fillHeight: true
92 Layout.preferredWidth: 76
95 model: StatusBarModel {}
97 Layout.preferredWidth: 77
98 Layout.preferredHeight: 73
99 source: model.modelData
100 fillMode: Image.PreserveAspectFit