Commit 5e5b754f authored by J-P Nurmi's avatar J-P Nurmi Committed by The Qt Project
Browse files

Expose cursorRectangle for TextField & TextArea


Change-Id: I15ebfcb96e092c7deda647509ddd2aa67303b53d
Reviewed-by: default avatarCaroline Chao <caroline.chao@digia.com>
Reviewed-by: default avatarLiang Qi <liang.qi@digia.com>
parent ce4054c1
Branches
Tags
No related merge requests found
Showing with 16 additions and 0 deletions
...@@ -132,6 +132,14 @@ ScrollView { ...@@ -132,6 +132,14 @@ ScrollView {
*/ */
property alias cursorPosition: edit.cursorPosition property alias cursorPosition: edit.cursorPosition
/*!
\qmlproperty rect TextArea::cursorRectangle
\since QtQuick.Controls 1.3
The rectangle where the text cursor is rendered within the text area.
*/
readonly property alias cursorRectangle: edit.cursorRectangle
/*! \qmlproperty font TextArea::font /*! \qmlproperty font TextArea::font
The font of the TextArea. The font of the TextArea.
......
...@@ -128,6 +128,14 @@ Control { ...@@ -128,6 +128,14 @@ Control {
*/ */
property alias cursorPosition: textInput.cursorPosition property alias cursorPosition: textInput.cursorPosition
/*!
\qmlproperty rect TextField::cursorRectangle
\since QtQuick.Controls 1.3
The rectangle where the text cursor is rendered within the text field.
*/
readonly property alias cursorRectangle: textInput.cursorRectangle
/*! /*!
\qmlproperty string TextField::displayText \qmlproperty string TextField::displayText
......
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment