diff options
author | Kati Kankaanpaa <kati.kankaanpaa@theqtcompany.com> | 2015-10-02 12:10:44 -0700 |
---|---|---|
committer | Kati Kankaanpaa <kati.kankaanpaa@theqtcompany.com> | 2015-10-02 20:03:57 +0000 |
commit | d7f3ab35deeed07404990591d232b559ac960c61 (patch) | |
tree | ae359e21cac00b63dd05d841201ae4e7a7c24cf3 | |
parent | ace832119f3ee4df3aec980ad221ac701def3c8d (diff) | |
download | qtquickcontrols-d7f3ab35deeed07404990591d232b559ac960c61.tar.gz |
Add cursorPosition property to SpinBox
Expose the cursor position of the underlying text editor as a
cursorPosition property in SpinBox.
Change-Id: Ibe084d9f7e3e489db12040aed187e76752f76e90
Reviewed-by: J-P Nurmi <jpnurmi@theqtcompany.com>
-rw-r--r-- | src/controls/SpinBox.qml | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/src/controls/SpinBox.qml b/src/controls/SpinBox.qml index 96d8d0a2..aa7ccb1c 100644 --- a/src/controls/SpinBox.qml +++ b/src/controls/SpinBox.qml @@ -132,6 +132,15 @@ Control { */ property alias font: input.font + /*! + \qmlproperty int SpinBox::cursorPosition + \since QtQuick.Controls 1.5 + + This property holds the position of the cursor in the SpinBox. + */ + property alias cursorPosition: input.cursorPosition + + /*! This property indicates whether the Spinbox should get active focus when pressed. The default value is \c true. |