Warning, /rolisteam/rolisteam/src/libraries/charactersheet/qml/Rolisteam/CheckBoxFieldv1.qml is written in an unsupported language. File is not indexed.
0001 import QtQuick 2.0 0002 import QtQuick 2.4 0003 import QtQuick.Controls 1.3 0004 import QtQuick.Controls.Styles 1.4 0005 0006 Rectangle { 0007 id:root 0008 0009 property string text : "" 0010 property color textColor: "black" 0011 // property alias style: checkbox.style 0012 property int hAlign: 0 0013 property int vAlign: 0 0014 property bool clippedText: false 0015 property bool readOnly: false 0016 property alias checked: checkbox.checked 0017 0018 CheckBox { 0019 id: checkbox 0020 anchors.fill: parent 0021 checked: root.text === "1" ? true : false 0022 enabled: !root.readOnly 0023 onCheckedChanged: { 0024 root.text = checked ? "1": "0" 0025 } 0026 } 0027 } 0028