From 1910321dafc189e1df0ed2dd60765fac99a87a25 Mon Sep 17 00:00:00 2001 From: Frederik Gladhorn Date: Fri, 15 Feb 2013 18:23:47 +0100 Subject: Add textDocument alias. This makes it possible to access the QQuickTextDocument for use in QSyntaxHighlighters. Change-Id: Ia08f9602795cfa94d021bc87f906cc5bf9f2d60b Reviewed-by: Gabriel de Dietrich --- src/controls/TextArea.qml | 8 ++++++++ 1 file changed, 8 insertions(+) (limited to 'src/controls/TextArea.qml') 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 -- cgit v1.2.1