summaryrefslogtreecommitdiff
path: root/Fields/Bool.qml
diff options
context:
space:
mode:
authorTimotej Lazar <timotej.lazar@araneo.si>2021-09-01 17:13:51 +0200
committerTimotej Lazar <timotej.lazar@araneo.si>2021-09-16 20:33:05 +0200
commitcb76fedcbc8e419e2b945baa56ac3f986a9e79a3 (patch)
treee29be52e4372d3d6e5bfe7056d7af1e1cc0ae2bc /Fields/Bool.qml
parente9b70c585c6bf1fa68a594a8755d90c017e6260c (diff)
Implement event model in C++
Filtering events in JS is too slow with >20,000 events. This moves the event data model into C++.
Diffstat (limited to 'Fields/Bool.qml')
-rw-r--r--Fields/Bool.qml5
1 files changed, 2 insertions, 3 deletions
diff --git a/Fields/Bool.qml b/Fields/Bool.qml
index ccb0758..f6cd184 100644
--- a/Fields/Bool.qml
+++ b/Fields/Bool.qml
@@ -4,14 +4,13 @@ import QtQuick 2.12
import QtQuick.Controls 2.13
Row {
- id: control
width: parent.width
- property var definition
+ property var model
property alias value: input.checked
Keys.onPressed: {
- if (event.text === definition.key) {
+ if (event.text === model.key) {
value = !value
event.accepted = true
}