calendario 30 giorni: pagina con alte/basse per ogni giorno, dal menu del dettaglio (EN/IT)

This commit is contained in:
2026-09-02 12:47:46 +02:00
parent a246c8db12
commit e9154f6eef
4 changed files with 117 additions and 0 deletions
+11
View File
@@ -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"))