cover: preferito custom (comune) con coordinate salvate (preferredLat/Lon); riga eventi: colonna Alta/Bassa con fade (mai sovrapposta)
This commit is contained in:
@@ -244,7 +244,8 @@ Page {
|
||||
anchors.left: parent.left
|
||||
anchors.leftMargin: Theme.horizontalPageMargin
|
||||
anchors.verticalCenter: parent.verticalCenter
|
||||
width: 110
|
||||
width: 130
|
||||
truncationMode: TruncationMode.Fade
|
||||
}
|
||||
Label {
|
||||
text: model.date + " " + model.time
|
||||
@@ -366,6 +367,14 @@ Page {
|
||||
visible: page.port && page.port[0] !== appSettings.preferredPort
|
||||
onClicked: {
|
||||
appSettings.preferredPort = page.port[0]
|
||||
// se è un comune (custom) salva le coordinate per la cover
|
||||
if (page.custom) {
|
||||
appSettings.preferredLat = page.port[2]
|
||||
appSettings.preferredLon = page.port[3]
|
||||
} else {
|
||||
appSettings.preferredLat = -1
|
||||
appSettings.preferredLon = -1
|
||||
}
|
||||
pageStack.replace(Qt.resolvedUrl("MainPage.qml"))
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user