Skip to content
Snippets Groups Projects
Select Git revision
  • 96f3ab1cb09f37e4a45462beddbc6206fda2d8e3
  • main default protected
  • edgedg
3 results

Case.qml

Blame
  • Case.qml 1.10 KiB
    import QtQuick
    
    Item {
        id: _item
        width: 70
        height: 70
        property alias rectangleBorderColor: rectangle.border.color
        property alias rectangleColor: rectangle.color
    
        property alias rectangleBorderwidth: rectangle.border.width
        property alias _textText: _text.text
    
        focus: false
    
        function resetFocus() {
            focus = true
        }
    
        Rectangle {
            id: rectangle
            width: 70
            height: 70
            color: "#323232"
            radius: 5
            border.color: "#ffffff"
            border.width: 3
            anchors.verticalCenter: parent.verticalCenter
            anchors.horizontalCenter: parent.horizontalCenter
    
            Text {
                id: _text
                width: 70
                height: 70
                color: "#ffffff"
                text: qsTr("")
                anchors.verticalCenter: parent.verticalCenter
                font.pixelSize: 50
                horizontalAlignment: Text.AlignHCenter
                verticalAlignment: Text.AlignVCenter
                font.family: "Tahoma"
                font.styleName: "Regular"
                anchors.horizontalCenter: parent.horizontalCenter
            }
        }
    
    
    }