From d74f417a67a30025894ee14652152f5d15c37bf0 Mon Sep 17 00:00:00 2001 From: Carlo Baratto Date: Wed, 2 Sep 2026 11:40:46 +0200 Subject: [PATCH] =?UTF-8?q?fix=20finestra=20bianca:=20ListItemLayout=20non?= =?UTF-8?q?=20esiste=20sul=20kit=20Qt=205.6=20=E2=80=94=20layout=20manuale?= =?UTF-8?q?=20a=20due=20righe?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- qml/pages/MainPage.qml | 36 ++++++++++++++++++++++++++++-------- 1 file changed, 28 insertions(+), 8 deletions(-) diff --git a/qml/pages/MainPage.qml b/qml/pages/MainPage.qml index 6cd7b77..abb88d0 100644 --- a/qml/pages/MainPage.qml +++ b/qml/pages/MainPage.qml @@ -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)