1
0
mirror of https://github.com/qTox/qTox.git synced 2024-03-22 14:00:36 +08:00

feat(UI): add accessibility labels to the add friend page

This commit is contained in:
Zetok Zalbavar 2016-11-26 16:49:29 +00:00
parent 330d6405f7
commit 8854589b0d
No known key found for this signature in database
GPG Key ID: C953D3880212068A

View File

@ -79,6 +79,13 @@ AddFriendForm::AddFriendForm()
connect(&sendButton, SIGNAL(clicked()), this, SLOT(onSendTriggered()));
connect(Nexus::getCore(), &Core::usernameSet, this, &AddFriendForm::onUsernameSet);
// accessibility stuff
toxIdLabel.setAccessibleDescription(tr("Tox ID, either 76 hexadecimal characters or name@example.com"));
toxId.setAccessibleDescription(tr("Type in Tox ID of your friend"));
messageLabel.setAccessibleDescription(tr("Friend request message"));
message.setAccessibleDescription(
tr("Type message to send with the friend request or leave empty to send a default message"));
retranslateUi();
Translator::registerHandler(std::bind(&AddFriendForm::retranslateUi, this), this);