diff options
author | Ethin Probst <harlydavidsen@gmail.com> | 2020-05-27 23:57:05 +0300 |
---|---|---|
committer | Robert Adam <dev@robert-adam.de> | 2020-05-28 19:18:05 +0300 |
commit | c73f9677115100b221bc3efec5af59c6049ddb70 (patch) | |
tree | 6eea1139c1aef2ae75bf5e273c21f946939571fe /src/mumble/ACLEditor.cpp | |
parent | 1d7fbd936562d59b6ddd17b009183e68c4c4bf92 (diff) |
Accessibility: Added accessibility text to dialogs
Qt5 provides different ways of improving the accessibility of the
application. One of these are accessibility names. This basically
assigns a given UI element a name that can be used by e.g. a screen
reader.
This commit adds lots of these names to almost all dialogs.
Diffstat (limited to 'src/mumble/ACLEditor.cpp')
-rw-r--r-- | src/mumble/ACLEditor.cpp | 32 |
1 files changed, 32 insertions, 0 deletions
diff --git a/src/mumble/ACLEditor.cpp b/src/mumble/ACLEditor.cpp index b93ee2855..42a797838 100644 --- a/src/mumble/ACLEditor.cpp +++ b/src/mumble/ACLEditor.cpp @@ -33,6 +33,22 @@ ACLEditor::ACLEditor(int channelparentid, QWidget *p) : QDialog(p) { setupUi(this); + qwChannel->setAccessibleName(tr("Properties")); + rteChannelDescription->setAccessibleName(tr("Description")); + qleChannelPassword->setAccessibleName(tr("Channel password")); + qsbChannelPosition->setAccessibleName(tr("Position")); + qsbChannelMaxUsers->setAccessibleName(tr("Maximum users")); + qleChannelName->setAccessibleName(tr("Channel name")); + qcbGroupList->setAccessibleName(tr("List of groups")); + qlwGroupAdd->setAccessibleName(tr("Inherited group members")); + qlwGroupRemove->setAccessibleName(tr("Foreign group members")); + qlwGroupInherit->setAccessibleName(tr("Inherited channel members")); + qcbGroupAdd->setAccessibleName(tr("Add members to group")); + qcbGroupRemove->setAccessibleName(tr("Remove member from group")); + qlwACLs->setAccessibleName(tr("List of ACL entries")); + qcbACLGroup->setAccessibleName(tr("Group this entry applies to")); + qcbACLUser->setAccessibleName(tr("User this entry applies to")); + qsbChannelPosition->setRange(INT_MIN, INT_MAX); setWindowTitle(tr("Mumble - Add channel")); @@ -77,6 +93,22 @@ ACLEditor::ACLEditor(int channelid, const MumbleProto::ACL &mea, QWidget *p) : Q setupUi(this); + qwChannel->setAccessibleName(tr("Properties")); + rteChannelDescription->setAccessibleName(tr("Description")); + qleChannelPassword->setAccessibleName(tr("Channel password")); + qsbChannelPosition->setAccessibleName(tr("Position")); + qsbChannelMaxUsers->setAccessibleName(tr("Maximum users")); + qleChannelName->setAccessibleName(tr("Channel name")); + qcbGroupList->setAccessibleName(tr("List of groups")); + qlwGroupAdd->setAccessibleName(tr("Inherited group members")); + qlwGroupRemove->setAccessibleName(tr("Foreign group members")); + qlwGroupInherit->setAccessibleName(tr("Inherited channel members")); + qcbGroupAdd->setAccessibleName(tr("Add members to group")); + qcbGroupRemove->setAccessibleName(tr("Remove member from group")); + qlwACLs->setAccessibleName(tr("List of ACL entries")); + qcbACLGroup->setAccessibleName(tr("Group this entry applies to")); + qcbACLUser->setAccessibleName(tr("User this entry applies to")); + qcbChannelTemporary->hide(); iId = mea.channel_id(); |