diff options
author | Alberto Mardegan <alberto.mardegan@canonical.com> | 2012-05-08 10:18:01 -0700 |
---|---|---|
committer | Jens Bache-Wiig <jens.bache-wiig@nokia.com> | 2012-05-09 10:11:09 +0200 |
commit | 31cd9a12adf8dcb6cca04849b294e8aa28125699 (patch) | |
tree | 2608bb2de72e7736f36806f3c8154bb4a19f6846 | |
parent | 7481718f7e5cc2cd047c589fdb27a08f9bfb99fb (diff) | |
download | qtquickcontrols-31cd9a12adf8dcb6cca04849b294e8aa28125699.tar.gz |
Use caret cursor in TextFields
Task-number: QTCOMPONENTS-1249
Change-Id: I9056ec2c1fb8388d76ce914c72e9706e5c284988
Reviewed-by: Morten Johan Sørvig <morten.sorvig@nokia.com>
Reviewed-by: Jens Bache-Wiig <jens.bache-wiig@nokia.com>
-rw-r--r-- | components/custom/TextField.qml | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/components/custom/TextField.qml b/components/custom/TextField.qml index 4e96e799..256705c9 100644 --- a/components/custom/TextField.qml +++ b/components/custom/TextField.qml @@ -1,5 +1,6 @@ import QtQuick 1.1 import "./behaviors" // TextEditMouseBehavior +import ".." // KNOWN ISSUES // 1) TextField does not loose focus when !enabled if it is a FocusScope (see QTBUG-16161) @@ -91,6 +92,10 @@ FocusScope { anchors.fill: parent hoverEnabled: true onClicked: textfield.forceActiveFocus() + CursorArea { + anchors.fill: parent + cursor: CursorArea.IBeamCursor + } } onFocusChanged: { |