aboutsummaryrefslogtreecommitdiffstats
path: root/src/imports/controls/material/TextField.qml
diff options
context:
space:
mode:
authorKai Uwe Broulik <kde@privat.broulik.de>2016-10-04 13:17:30 +0200
committerKai Uwe Broulik <kde@privat.broulik.de>2016-10-04 11:42:06 +0000
commit4368751f152fd75f59ce23b2876596fa7a18ff25 (patch)
tree889a5e2b98cfe507ea74754e930dafd7eb13fcd9 /src/imports/controls/material/TextField.qml
parent12d06e3177b3bf16fcdcfb349bc193bc481b7485 (diff)
Material Style: Fix cursorFlashTime
The flash time is the time used to display, invert and restore the caret display. This means, the interval for turning it on and off needs to be halved. Change-Id: I5c258aad10efab6c2c30d176ccae84ee6f8cb9b3 Reviewed-by: J-P Nurmi <jpnurmi@qt.io>
Diffstat (limited to 'src/imports/controls/material/TextField.qml')
-rw-r--r--src/imports/controls/material/TextField.qml2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/imports/controls/material/TextField.qml b/src/imports/controls/material/TextField.qml
index 580b43bd..ab6f6187 100644
--- a/src/imports/controls/material/TextField.qml
+++ b/src/imports/controls/material/TextField.qml
@@ -74,7 +74,7 @@ T.TextField {
id: timer
running: control.activeFocus
repeat: true
- interval: Qt.styleHints.cursorFlashTime
+ interval: Qt.styleHints.cursorFlashTime / 2
onTriggered: cursor.opacity = !cursor.opacity ? 1 : 0
// force the cursor visible when gaining focus
onRunningChanged: cursor.opacity = 1