-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathCitySelector.qml
46 lines (42 loc) · 1.09 KB
/
CitySelector.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
import QtQuick 2.0
import QtQuick.Controls 2.15
import QtQuick.Layouts 1.15
ComboBox {
model: [
"Toronto, Canada",
"Montreal, Canada",
"Vancouver, Canada",
"Calgary, Canada",
"Austin, USA",
"Boston, USA",
"Chicago, USA",
"Houston, USA",
"Florida, USA",
"Seattle, USA",
"New York, USA",
"Hawaii, USA",
"Michigan, USA",
"Pennsylvania, USA",
"Kentucky, USA",
"Louisiana, USA",
"California, USA",
"Washington DC, USA",
"Texas, USA",
"Ho Chi Minh, Vietnam",
"Phan Thiet, Vietnam",
"Long Khanh, Vietnam",
"Ha Noi, Vietnam",
"Thua Thien Hue, Vietnam",
"Vung Tau, Vietnam",
"Da Lat, Vietnam",
"Da Nang, Vietnam",
"Nha Trang, Vietnam"
]
currentIndex: 7 // Houston, USA
onCurrentIndexChanged: {
wifiOffNotification.checkWifi()
// weather.returnToLoadingState()
weather.reloadWeatherFromLocation(model[currentIndex])
taskListView.reloadTasks()
}
}