blob: ef1cb27d89e614cc506530a0a12ca55e7aeb259a (
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
32
33
34
35
|
// Copyright (C) 2022 The Qt Company Ltd.
// SPDX-License-Identifier: LicenseRef-Qt-Commercial OR BSD-3-Clause
import QtQuick
import QtQuick.Controls
import QtQuick.Controls.Material
Column {
id: rootItem
property alias text: textItem.text
property alias checked: checkBox.checked
signal toggled
Material.theme: Material.Dark
Material.accent: Material.LightGreen
spacing: -12
Row {
CheckBox {
id: checkBox
checked: true
onToggled: {
rootItem.toggled();
}
}
Text {
id: textItem
anchors.verticalCenter: parent.verticalCenter
color: "#f0f0f0"
font.pixelSize: 14 * dp
}
}
}
|