Improve TextField accessibility

Qt Quick accessibility already picks up the text automatically. Instead
set the name (which is a descriptive element) to the placeholder text
which is more descriptive of the element. Otherwise Orca will read the
text twice.
This commit is contained in:
Frederik Gladhorn 2014-07-09 09:55:21 +02:00
parent c29896a3a8
commit 445331bba8

View File

@ -385,9 +385,8 @@ FocusScope {
}
}
Accessible.name: text
Accessible.name: placeholderText
Accessible.role: Accessible.EditableText
Accessible.readOnly: readOnly
Accessible.passwordEdit: echoMode == TextInput.Password || echoMode === TextInput.PasswordEchoOnEdit
Accessible.description: placeholderText
}