fix finestra bianca: ListItemLayout non esiste sul kit Qt 5.6 — layout manuale a due righe
This commit is contained in:
+28
-8
@@ -83,14 +83,34 @@ Page {
|
|||||||
contentHeight: Theme.itemSizeMedium
|
contentHeight: Theme.itemSizeMedium
|
||||||
highlighted: model.isPreferred
|
highlighted: model.isPreferred
|
||||||
|
|
||||||
ListItemLayout {
|
// Due righe manuali (ListItemLayout non esiste su questo kit Qt 5.6)
|
||||||
title.text: model.name
|
Column {
|
||||||
title.color: model.isPreferred ? Theme.highlightColor : Theme.primaryColor
|
anchors.left: parent.left
|
||||||
title.truncationMode: TruncationMode.Fade
|
anchors.leftMargin: Theme.horizontalPageMargin
|
||||||
subtitle.text: model.country
|
anchors.right: parent.right
|
||||||
subtitle.color: Theme.secondaryColor
|
anchors.rightMargin: Theme.horizontalPageMargin + 80
|
||||||
summary.text: model.range
|
anchors.verticalCenter: parent.verticalCenter
|
||||||
summary.color: Theme.secondaryColor
|
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: {
|
onClicked: {
|
||||||
console.log("[tide] open port:", model.name, "custom:", model.custom)
|
console.log("[tide] open port:", model.name, "custom:", model.custom)
|
||||||
|
|||||||
Reference in New Issue
Block a user