blob: c99e6d2a270145d860dc4816eac3cd8797a0fb69 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
|
// Copyright (C) 2016 The Qt Company Ltd.
// SPDX-License-Identifier: LicenseRef-Qt-Commercial OR GPL-3.0-only WITH Qt-GPL-exception-1.0
import QtQuick 2.0
MouseArea {
property string buttontext: ""
width: parent.width / 4
height: parent.height - 4
Rectangle {
anchors.fill: parent
radius: 5
color: "lightgray"
border.color: "black"
}
Text {
anchors.centerIn: parent
text: buttontext
color: "black"
}
}
|