blob: 6894c69d32925bd47b66a658c65bc81857096d01 (
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
29
30
31
|
/***************************************************************************************************
Copyright (C) 2023 The Qt Company Ltd.
SPDX-License-Identifier: LicenseRef-Qt-Commercial OR LGPL-3.0-only OR GPL-2.0-only OR GPL-3.0-only
***************************************************************************************************/
import QtQml
import QtQuick
import QtQuick.Controls
import QtQuick.Layouts
import QtQuick.Shapes
RoundButton {
id: watchButton
property string buttonText
property bool split
property string color
width: 70; height: 70; radius: 25
palette.button: color
Text {
anchors.centerIn: parent
horizontalAlignment: Text.AlignHCenter
font.bold: true
text: watchButton.buttonText
}
Rectangle {
visible: watchButton.split
color: "black"
width: 55; height: 1
anchors.centerIn: parent
}
}
|