PadPin.qml 727 Bytes
Newer Older
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15
import QtQuick 2.6
import QtQuick.Controls 2.1
import App 1.0


Button
{
    id: button
    width: 60
    height: 60
    flat: true

    property int keyId: 16
    property alias buttonText: labelItem.text
    property alias buttonColor: back.color
16
    property alias fontSize: labelItem.font.pixelSize
17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33


    background: Rectangle
    {
        id: back
        color: "#0c2b4a"
        border.width: 4
        border.color: "#000105"
        radius: 8
    }

    contentItem: Label
    {
        id: labelItem
        anchors.fill: parent
        color: "#ffffff"
        text: "0"
34
        font.pixelSize: Variables.fontKeys
35 36 37 38 39
        verticalAlignment: Text.AlignVCenter
        horizontalAlignment: Text.AlignHCenter
    }

}