summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAlberto Mardegan <alberto.mardegan@canonical.com>2012-05-08 10:36:13 -0700
committerJens Bache-Wiig <jens.bache-wiig@nokia.com>2012-05-09 10:11:27 +0200
commita8234fb81cd90d9d11956310df4f71483a3e1c38 (patch)
treefd510c459178db40bf3bf04f3f91c78b2cf83a57
parent31cd9a12adf8dcb6cca04849b294e8aa28125699 (diff)
downloadqtquickcontrols-a8234fb81cd90d9d11956310df4f71483a3e1c38.tar.gz
Use caret cursor in TextArea
Task-number: QTCOMPONENTS-1249 Change-Id: I615ba4139110eb89615c6ae402c05251796e83a6 Reviewed-by: Morten Johan Sørvig <morten.sorvig@nokia.com> Reviewed-by: Jens Bache-Wiig <jens.bache-wiig@nokia.com>
-rw-r--r--components/TextArea.qml5
1 files changed, 5 insertions, 0 deletions
diff --git a/components/TextArea.qml b/components/TextArea.qml
index c53959e2..b3e12172 100644
--- a/components/TextArea.qml
+++ b/components/TextArea.qml
@@ -44,6 +44,11 @@ ScrollArea {
colorGroup: enabled ? SystemPalette.Active : SystemPalette.Disabled
}
+ CursorArea {
+ anchors.fill: parent
+ cursor: CursorArea.IBeamCursor
+ }
+
KeyNavigation.priority: KeyNavigation.BeforeItem
KeyNavigation.tab: area.tabChangesFocus ? area.KeyNavigation.tab : null
KeyNavigation.backtab: area.tabChangesFocus ? area.KeyNavigation.backtab : null