fix finestra bianca: ListItemLayout non esiste sul kit Qt 5.6 — layout manuale a due righe

This commit is contained in:
2026-09-02 11:40:46 +02:00
parent d6cc714ef9
commit d74f417a67
+28 -8
View File
@@ -83,14 +83,34 @@ Page {
contentHeight: Theme.itemSizeMedium
highlighted: model.isPreferred
ListItemLayout {
title.text: model.name
title.color: model.isPreferred ? Theme.highlightColor : Theme.primaryColor
title.truncationMode: TruncationMode.Fade
subtitle.text: model.country
subtitle.color: Theme.secondaryColor
summary.text: model.range
summary.color: Theme.secondaryColor
// Due righe manuali (ListItemLayout non esiste su questo kit Qt 5.6)
Column {
anchors.left: parent.left
anchors.leftMargin: Theme.horizontalPageMargin
anchors.right: parent.right
anchors.rightMargin: Theme.horizontalPageMargin + 80
anchors.verticalCenter: parent.verticalCenter
Label {
text: model.name
color: model.isPreferred ? Theme.highlightColor : Theme.primaryColor
width: parent.width
truncationMode: TruncationMode.Fade
}
Label {
text: model.country
color: Theme.secondaryColor
font.pixelSize: Theme.fontSizeSmall
width: parent.width
truncationMode: TruncationMode.Fade
}
}
Label {
text: model.range
color: Theme.secondaryColor
font.pixelSize: Theme.fontSizeSmall
anchors.right: parent.right
anchors.rightMargin: Theme.horizontalPageMargin
anchors.verticalCenter: parent.verticalCenter
}
onClicked: {
console.log("[tide] open port:", model.name, "custom:", model.custom)