-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathMainPage.qml
111 lines (87 loc) · 2.33 KB
/
MainPage.qml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
import QtQuick 2.0
import QtQuick.Controls 2.15
import QtQuick.Layouts 1.15
import com.mycompany.weather 1.0
import com.mycompany.datetime 1.0
import com.mycompany.task 1.0
import com.mycompany.weaminder 1.0
Item {
Weaminder {
id: weaminder
}
DateTime {
id: dateTime
}
TasksLoader {
id: tasksLoader
}
Weather {
id: weather
tasksLoader: tasksLoader
onWeatherPropertiesChanged: {
taskListView.reloadTasks()
weatherTimeSelector.addTimeToList()
weatherDaySelector.dailyWeatherIconUrlList = weather.getDailyWeatherIconUrlsListFromJsonData()
}
}
ColumnLayout {
anchors.fill: parent
anchors.margins: 8
RowLayout {
Layout.fillWidth: true
spacing: 2
CitySelector {
id: citySelector
implicitWidth: 220
Layout.fillWidth: true
}
WeatherTimeSelector {
id: weatherTimeSelector
implicitWidth: 120
Layout.fillWidth: true
}
}
WeatherInfo {
id: weatherInfoWidget
Layout.fillWidth: true
weatherStatus: weather.status
weatherStatusIconPath: weather.statusIconUrl
temperature: weather.temperature
humidity: weather.humidity
windSpeed: weather.windSpeed
uvIndex: weather.uvIndex
rain: weather.rain
}
Label {
id: rememberTitle
text: "Remember to:"
font.pointSize: 13
}
TasksListView {
id: taskListView
Layout.fillWidth: true
Layout.fillHeight: true
}
}
SelectDayButton {
id: selectDayButton
anchors.right: parent.right
anchors.bottom: parent.bottom
anchors.margins: 8
}
WeatherDaySelector {
id: weatherDaySelector
anchors.right: parent.right
anchors.left: parent.left
anchors.bottom: parent.bottom
anchors.bottomMargin: -128
}
EasterEgg {
anchors.fill: parent
}
WifiOffNotification {
id: wifiOffNotification
anchors.horizontalCenter: parent.horizontalCenter
anchors.top: parent.top
}
}