calendario 30 giorni: pagina con alte/basse per ogni giorno, dal menu del dettaglio (EN/IT)
This commit is contained in:
@@ -49,6 +49,12 @@ Page {
|
||||
{ port: port, portIndex: Tides.PORTS.indexOf(port), custom: false })
|
||||
}
|
||||
|
||||
function openCalendar() {
|
||||
console.log("[tide] openCalendar:", page.port ? page.port[0] : "undefined")
|
||||
pageStack.push(Qt.resolvedUrl("CalendarPage.qml"),
|
||||
{ port: page.port })
|
||||
}
|
||||
|
||||
function refresh() {
|
||||
if (!port) {
|
||||
console.log("[tide] refresh: port UNDEFINED")
|
||||
@@ -378,6 +384,11 @@ Page {
|
||||
pageStack.replace(Qt.resolvedUrl("MainPage.qml"))
|
||||
}
|
||||
}
|
||||
MenuItem {
|
||||
text: qsTr("30-day calendar")
|
||||
visible: page.port !== undefined
|
||||
onClicked: page.openCalendar()
|
||||
}
|
||||
MenuItem {
|
||||
text: qsTr("Settings")
|
||||
onClicked: pageStack.push(Qt.resolvedUrl("SettingsPage.qml"))
|
||||
|
||||
Reference in New Issue
Block a user