summary refs log tree commit diff
path: root/resources/qml/MatrixTextField.qml
diff options
context:
space:
mode:
authorNicolas Werner <nicolas.werner@hotmail.de>2022-01-28 15:24:56 +0100
committerNicolas Werner <nicolas.werner@hotmail.de>2022-01-28 15:24:56 +0100
commitf28013dc181e279b6659484c7b4a46746fbd2eb3 (patch)
tree8db3d471a14383c0a21ed1bb14d59800554381a9 /resources/qml/MatrixTextField.qml
parentRemove some unused functions (diff)
downloadnheko-f28013dc181e279b6659484c7b4a46746fbd2eb3.tar.xz
Port registration to Qml
Diffstat (limited to 'resources/qml/MatrixTextField.qml')
-rw-r--r--resources/qml/MatrixTextField.qml8
1 files changed, 8 insertions, 0 deletions
diff --git a/resources/qml/MatrixTextField.qml b/resources/qml/MatrixTextField.qml
index 655d53f1..05f2c82f 100644
--- a/resources/qml/MatrixTextField.qml
+++ b/resources/qml/MatrixTextField.qml
@@ -21,6 +21,14 @@ ColumnLayout {
     property alias echoMode: input.echoMode
     property alias selectByMouse: input.selectByMouse
 
+    Timer {
+        id: timer
+        interval: 350
+        onTriggered: editingFinished()
+    }
+
+    onTextChanged: timer.restart()
+
     signal textEdited
     signal accepted
     signal editingFinished