From cb76fedcbc8e419e2b945baa56ac3f986a9e79a3 Mon Sep 17 00:00:00 2001 From: Timotej Lazar Date: Wed, 1 Sep 2021 17:13:51 +0200 Subject: Implement event model in C++ Filtering events in JS is too slow with >20,000 events. This moves the event data model into C++. --- Fields/Bool.qml | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) (limited to 'Fields/Bool.qml') 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 } -- cgit v1.3