Implement event model in C++

Filtering events in JS is too slow with >20,000 events. This moves the
event data model into C++.
This commit is contained in:
Timotej Lazar 2021-09-01 17:13:51 +02:00
parent e9b70c585c
commit cb76fedcbc
No known key found for this signature in database
GPG key ID: B6F38793D143456F
14 changed files with 375 additions and 342 deletions

View file

@ -6,11 +6,11 @@ import QtQuick.Controls 2.13
Label {
id: control
property var definition
property var model
property alias value: control.text
Keys.onPressed: {
if (event.text === definition.key) {
if (event.text === model.key) {
popup.open()
event.accepted = true
}
@ -23,8 +23,8 @@ Label {
Popup {
id: popup
width: control.width
height: control.height
width: parent.width
height: parent.height
padding: 0
onOpened: {