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)