diff options
author | Frederik Gladhorn <frederik.gladhorn@digia.com> | 2014-02-06 16:28:44 +0100 |
---|---|---|
committer | The Qt Project <gerrit-noreply@qt-project.org> | 2014-02-07 10:46:05 +0100 |
commit | 7297525af092b3109761567063aac5680f24475b (patch) | |
tree | 3d2681e788d0c9da5e53d349cc4e8a60efc1fc91 /src/controls | |
parent | a67cf8bd31d3ea88729b704b58f3490c2a8ea7d2 (diff) | |
download | qtquickcontrols-7297525af092b3109761567063aac5680f24475b.tar.gz |
Accessibility: Improve TextField and Area
Add password and read only states
Change-Id: I5da2fafc0be8ee451ea754774e8daa8aee2f0dcd
Reviewed-by: Jan Arve Sæther <jan-arve.saether@digia.com>
Diffstat (limited to 'src/controls')
-rw-r--r-- | src/controls/TextArea.qml | 1 | ||||
-rw-r--r-- | src/controls/TextField.qml | 2 |
2 files changed, 3 insertions, 0 deletions
diff --git a/src/controls/TextArea.qml b/src/controls/TextArea.qml index 66e7faf6..e551d46e 100644 --- a/src/controls/TextArea.qml +++ b/src/controls/TextArea.qml @@ -264,6 +264,7 @@ ScrollView { By default this property is \c false. */ property alias readOnly: edit.readOnly + Accessible.readOnly: readOnly /*! \qmlproperty string TextArea::selectedText diff --git a/src/controls/TextField.qml b/src/controls/TextField.qml index d9ba3625..d74ed0ac 100644 --- a/src/controls/TextField.qml +++ b/src/controls/TextField.qml @@ -156,6 +156,7 @@ Control { \endlist */ property alias echoMode: textInput.echoMode + Accessible.passwordEdit: echoMode == TextInput.Password || echoMode === TextInput.PasswordEchoOnEdit /*! \qmlproperty font TextField::font @@ -319,6 +320,7 @@ Control { work, however. */ property alias readOnly: textInput.readOnly + Accessible.readOnly: readOnly /*! \qmlproperty string TextField::selectedText |