DigitalDisplay.qml 652 Bytes
Newer Older
Bill Bonney's avatar
Bill Bonney committed
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30
import QtQuick 1.1

Rectangle {

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

    width: 100
    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"
    }
}