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/TextArea.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/TextArea.qml')
| -rw-r--r-- | Fields/TextArea.qml | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/Fields/TextArea.qml b/Fields/TextArea.qml index 20cfeff..7be3564 100644 --- a/Fields/TextArea.qml +++ b/Fields/TextArea.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,7 +23,7 @@ Label { Popup { id: popup - width: control.width + width: parent.width height: input.height padding: 0 |
