menu Impostazioni anche nella home; Sea state spostato in alto nel dettaglio (sotto la card porto vicino)

This commit is contained in:
2026-09-02 14:20:27 +02:00
parent 09ce52a1c6
commit d2f738ba7d
2 changed files with 21 additions and 9 deletions
+12
View File
@@ -6,6 +6,13 @@ import "../js/comuni.js" as Comuni
Page {
id: page
PullDownMenu {
MenuItem {
text: qsTr("Settings")
onClicked: page.openSettings()
}
}
// Campi di ricerca FUORI dall'header della lista: gli id dichiarati nel
// componente header hanno scope chiuso e le funzioni del Page non li
// vedono (ReferenceError "filter is not defined").
@@ -174,6 +181,11 @@ Page {
page.openDetail([name, qsTr("Italy"), lat, lon, cost, flag], -1, true)
}
function openSettings() {
console.log("[tide] openSettings")
pageStack.push(Qt.resolvedUrl("SettingsPage.qml"))
}
// --- Ricerca online (geocoding Photon) per città estere / non trovate ---
function geoFound(name, lat, lon, src) {
console.log("[tide] geoFound:", name, lat, lon, src)