36 lines
980 B
QML
36 lines
980 B
QML
import QtQuick 2.0
|
|
import Sailfish.Silica 1.0
|
|
|
|
// Riga "etichetta a sinistra, valore a destra".
|
|
// NON si usa ListItemLayout: non esiste sul kit Silica 5.1 / Qt 5.6 e la pagina
|
|
// che lo contiene non si carica ("Impossibile caricare la pagina").
|
|
Item {
|
|
id: row
|
|
|
|
property string label: ""
|
|
property string value: ""
|
|
|
|
width: parent ? parent.width : 0
|
|
height: labelItem.height + Theme.paddingSmall
|
|
|
|
Label {
|
|
id: labelItem
|
|
x: Theme.horizontalPageMargin
|
|
width: parent.width * 0.55
|
|
text: row.label
|
|
color: Theme.secondaryColor
|
|
font.pixelSize: Theme.fontSizeSmall
|
|
truncationMode: TruncationMode.Fade
|
|
}
|
|
|
|
Label {
|
|
anchors.right: parent.right
|
|
anchors.rightMargin: Theme.horizontalPageMargin
|
|
width: parent.width * 0.4
|
|
horizontalAlignment: Text.AlignRight
|
|
text: row.value
|
|
font.pixelSize: Theme.fontSizeSmall
|
|
truncationMode: TruncationMode.Fade
|
|
}
|
|
}
|