DigitalDisplay.qml 652 Bytes
Newer Older
1
import QtQuick 2.1
Bill Bonney's avatar
Bill Bonney committed
2 3 4 5 6 7

Rectangle {

    property alias title: displayTitle.text
    property string textValue: "none"

8
    width: 110
Bill Bonney's avatar
Bill Bonney committed
9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30
    height: parent.height/3
    anchors.verticalCenter: parent.verticalCenter
    border.color: "white"

    Text {
        id:displayTitle
        anchors.left: parent.left
        anchors.leftMargin: 3
        anchors.verticalCenter: parent.verticalCenter
        text: "blank"
        color: "white"
    }

    Text {
        id:displayValue
        anchors.right: parent.right
        anchors.rightMargin: 3
        anchors.verticalCenter: parent.verticalCenter
        text: textValue
        color: "white"
    }
}