blob: 004aca70df90826e768dece03f9ff2fcaed27bc5 (
plain)
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
|
// Copyright (C) 2016 The Qt Company Ltd.
// SPDX-License-Identifier: LicenseRef-Qt-Commercial OR GPL-3.0-only
import QtQuick
Rectangle
{
id: button
signal clicked()
property string buttonText
width: powerOn.width + 10
height: powerOn.height + 10
border.color: "black"
border.width: 2
radius: 4
Text {
id: powerOn
text: buttonText
font.pointSize: 16
anchors.centerIn: parent
}
MouseArea {
anchors.fill: parent
onClicked: button.clicked()
}
}
|