diff options
| author | Timotej Lazar <timotej.lazar@araneo.si> | 2021-09-01 17:13:51 +0200 |
|---|---|---|
| committer | Timotej Lazar <timotej.lazar@araneo.si> | 2021-09-16 20:33:05 +0200 |
| commit | cb76fedcbc8e419e2b945baa56ac3f986a9e79a3 (patch) | |
| tree | e29be52e4372d3d6e5bfe7056d7af1e1cc0ae2bc /Fields/Text.qml | |
| parent | e9b70c585c6bf1fa68a594a8755d90c017e6260c (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/Text.qml')
| -rw-r--r-- | Fields/Text.qml | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/Fields/Text.qml b/Fields/Text.qml index 49d7ad2..b4e4dbf 100644 --- a/Fields/Text.qml +++ b/Fields/Text.qml @@ -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: { |
