This repository has been archived on 2026-05-31. You can view files and clone it, but cannot push or open issues or pull requests.
powersync-app/mea/ui/paramdelegates/BoolParamDelegate.qml
2018-03-09 10:20:28 +01:00

22 lines
432 B
QML

import QtQuick 2.8
import QtQuick.Layouts 1.2
import QtQuick.Controls 2.1
ParamDelegateBase {
id: root
contentItem: RowLayout {
Label {
id: label
Layout.fillWidth: true
text: root.paramType.displayName + "- " + root.value
}
Switch {
id: theSwitch
checked: root.value == true
onClicked: root.value = checked
}
}
}