summaryrefslogtreecommitdiff
path: root/src/controls/TextArea.qml
diff options
context:
space:
mode:
authorFrederik Gladhorn <frederik.gladhorn@digia.com>2013-02-15 18:23:47 +0100
committerThe Qt Project <gerrit-noreply@qt-project.org>2013-03-01 17:57:28 +0100
commit1910321dafc189e1df0ed2dd60765fac99a87a25 (patch)
tree25a2459eef22f67e322e5b6d45b73d2d82fd4af2 /src/controls/TextArea.qml
parentb9cddcdfdb7f520fcc6c3e2775a907f2ac07e9b4 (diff)
downloadqtquickcontrols-1910321dafc189e1df0ed2dd60765fac99a87a25.tar.gz
Add textDocument alias.
This makes it possible to access the QQuickTextDocument for use in QSyntaxHighlighters. Change-Id: Ia08f9602795cfa94d021bc87f906cc5bf9f2d60b Reviewed-by: Gabriel de Dietrich <gabriel.dedietrich@digia.com>
Diffstat (limited to 'src/controls/TextArea.qml')
-rw-r--r--src/controls/TextArea.qml8
1 files changed, 8 insertions, 0 deletions
diff --git a/src/controls/TextArea.qml b/src/controls/TextArea.qml
index 94212022..4f1442cb 100644
--- a/src/controls/TextArea.qml
+++ b/src/controls/TextArea.qml
@@ -591,6 +591,14 @@ ScrollView {
Accessible.role: Accessible.EditableText
+ /*!
+ \qmlproperty textDocument TextArea::textDocument
+
+ This property exposes the \l QTextDocument of this TextArea.
+ \sa TextEdit::textDocument
+ */
+ property alias textDocument: edit.textDocument
+
TextEdit {
id: edit
focus: true