Debian Codegraph @

plugins/ubuntu-plugin/imports/components/CheckboxWithLabel.qml

raw
1 import QtQuick 2.4
2 import Lomiri.Components 1.3
3 import Dekko.Components 1.0
4
5 AbstractButton {
6 height: units.gu(4)
7 width: parent.width
8
9 property alias checked: checkbox.checked
10 property alias text: label.text
11 property alias textColor: label.color
12 StretchRow{
13 anchors {
14 fill: parent
15 }
16 spacing: units.gu(1)
17 CheckBox {
18 id: checkbox
19 anchors.verticalCenter: parent.verticalCenter
20 }
21 Label {
22 id: label
23 anchors.verticalCenter: parent.verticalCenter
24 }
25 }
26 onClicked: checkbox.checked = !checkbox.checked
27 }