Skip to content
This repository has been archived by the owner on Feb 12, 2023. It is now read-only.

Commit

Permalink
feat(UI): add accessibility labels to the add friend page
Browse files Browse the repository at this point in the history
  • Loading branch information
zetok committed Nov 26, 2016
1 parent 330d640 commit 8854589
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions src/widget/form/addfriendform.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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);

Expand Down

0 comments on commit 8854589

Please sign in to comment.