From 949e3cb830134a1412b93d751a1d16dd80877aba Mon Sep 17 00:00:00 2001 From: Zetok Zalbavar Date: Sun, 13 Nov 2016 23:44:05 +0000 Subject: [PATCH] feat(UI): add accessibility labels to the Profile page --- src/widget/form/profileform.cpp | 2 + src/widget/form/profileform.ui | 66 ++++++++++++++++++++++++++++++++- 2 files changed, 66 insertions(+), 2 deletions(-) diff --git a/src/widget/form/profileform.cpp b/src/widget/form/profileform.cpp index 556ab204e..313954eb8 100644 --- a/src/widget/form/profileform.cpp +++ b/src/widget/form/profileform.cpp @@ -101,6 +101,8 @@ ProfileForm::ProfileForm(QWidget *parent) : profilePicture->setContextMenuPolicy(Qt::CustomContextMenu); profilePicture->setClickable(true); profilePicture->installEventFilter(this); + profilePicture->setAccessibleName("Profile avatar"); + profilePicture->setAccessibleDescription("Set a profile avatar shown to all contacts"); connect(profilePicture, SIGNAL(clicked()), this, SLOT(onAvatarClicked())); connect(profilePicture, SIGNAL(customContextMenuRequested(const QPoint&)), this, SLOT(showProfilePictureContextMenu(const QPoint&))); QHBoxLayout *publicGrouplayout = qobject_cast(bodyUI->publicGroup->layout()); diff --git a/src/widget/form/profileform.ui b/src/widget/form/profileform.ui index 1844e31b3..bdd4165db 100644 --- a/src/widget/form/profileform.ui +++ b/src/widget/form/profileform.ui @@ -69,7 +69,14 @@ - + + + Name input + + + Name visible to contacts + + @@ -79,7 +86,14 @@ - + + + Status message input + + + Status message visible to contacts + + @@ -105,6 +119,9 @@ Share it with your friends to communicate. + + Your Tox ID + true @@ -132,6 +149,9 @@ Share it with your friends to communicate. + + Save QR image as file + Save image @@ -139,6 +159,9 @@ Share it with your friends to communicate. + + Copy QR image to clipboard + Copy image @@ -173,6 +196,9 @@ Share it with your friends to communicate. Name for the ToxMe service. + + ToxMe username to be shown on ToxMe + false @@ -193,6 +219,9 @@ Share it with your friends to communicate. Optional. Something about you. Or your cat. + + Optional ToxMe biography to be shown on ToxMe + @@ -213,6 +242,9 @@ Share it with your friends to communicate. ToxMe service to register on. + + ToxMe service address + true @@ -226,6 +258,9 @@ Share it with your friends to communicate. If not set, ToxMe entries are publicly visible. + + Visibility on the ToxMe service + Hide my name from the public list @@ -236,6 +271,9 @@ Share it with your friends to communicate. true + + Register on ToxMe + Register @@ -262,6 +300,9 @@ Share it with your friends to communicate. + + Password + false @@ -277,6 +318,9 @@ Share it with your friends to communicate. + + Update ToxMe entry + Update @@ -347,6 +391,9 @@ Share it with your friends to communicate. Rename profile. + + Rename profile. + Rename @@ -357,6 +404,9 @@ Share it with your friends to communicate. Delete profile. + + Delete profile. + Delete @@ -368,6 +418,9 @@ Share it with your friends to communicate. Allows you to export your Tox profile to a file. Profile does not contain your history. + + Export profile + Export @@ -378,6 +431,9 @@ Profile does not contain your history. Go back to the login screen + + + Logout @@ -418,6 +474,9 @@ Profile does not contain your history. Remove your password and encryption from your profile. + + Remove password from profile + Remove password @@ -425,6 +484,9 @@ Profile does not contain your history. + + Change profile password + Change password