Browse Source

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

reviewable/pr3921/r1
Zetok Zalbavar 9 years ago
parent
commit
8854589b0d
No known key found for this signature in database
GPG Key ID: C953D3880212068A
  1. 7
      src/widget/form/addfriendform.cpp

7
src/widget/form/addfriendform.cpp

@ -79,6 +79,13 @@ AddFriendForm::AddFriendForm() @@ -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);

Loading…
Cancel
Save