harbour-aira 0.1.0: client Sailfish per pompa di calore Aira (bridge HTTP + stato e comandi ACS)
This commit is contained in:
@@ -0,0 +1,35 @@
|
||||
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
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user