2 import QtQuick.Layouts 1.1
3 import QtQuick.Controls 2.0
11 property date now: new Date
13 interval: 100; running: true; repeat: true;
14 onTriggered: root.now = new Date
21 Layout.fillWidth: true
22 Layout.fillHeight: true
23 Layout.preferredWidth: 295 - 76
29 Layout.fillWidth: true
30 Layout.fillHeight: true
31 text: Qt.formatDate(now, 'dddd').toUpperCase()
35 verticalAlignment: Text.AlignVCenter
37 // anchors.fill: parent
40 // border.color: 'blue'
46 Layout.fillWidth: true
47 Layout.fillHeight: true
48 text: Qt.formatTime(now, 'h:mm ap').toUpperCase()
52 horizontalAlignment: Text.AlignHCenter
53 verticalAlignment: Text.AlignVCenter
56 Layout.fillWidth: true
57 Layout.fillHeight: true
58 Layout.preferredHeight: 20
60 source: './images/Weather/WeatherIcons_Rain-01.png'
65 font.family: 'Helvetica'
73 Layout.fillWidth: true
74 Layout.fillHeight: true
75 Layout.preferredWidth: 76
78 model: StatusBarModel {}
80 source: model.modelData
81 fillMode: Image.PreserveAspectFit