StatusDisplay.qml 563 Bytes
Newer Older
1
import QtQuick 2.1
2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24

Rectangle {
    id: statusDisplay
    property alias statusText: armedText.text
    property alias statusTextColor: armedText.color
    property alias statusBackgroundColor: statusDisplay.color

    width: 100
    height: parent.height/3
    anchors.verticalCenter: parent.verticalCenter
    radius: 3
    border.color: "white"
    border.width: 1

    Text {
        id: armedText
        anchors.centerIn: parent
        verticalAlignment: Text.AlignVCenter
        horizontalAlignment: Text.AlignHCenter
        font.pixelSize: 20
    }

}