1
0
Fork 0
mirror of https://git.jami.net/savoirfairelinux/jami-client-qt.git synced 2025-09-10 12:03:18 +02:00

accessibility: fix tooltip for push button

A blind person should be able to know if the button will show or
hide the section

Change-Id: I849e48eaa3166864493b2577c128bad6db705691
GitLab: #493
This commit is contained in:
Sébastien Blin 2021-12-16 15:55:14 -05:00
parent 819347370a
commit c95d29e07b
No known key found for this signature in database
GPG key ID: C894BB01EEB2A9A9
3 changed files with 10 additions and 4 deletions

View file

@ -319,7 +319,8 @@ Item {
property string setAPassword: qsTr("Set password")
property string changeCurrentPassword: qsTr("Change current password")
property string tipBackupAccount: qsTr("Backup account to a .gz file")
property string tipAdvancedSettingsDisplay: qsTr("Display or hide advanced settings")
property string tipAdvancedSettingsDisplay: qsTr("Display advanced settings")
property string tipAdvancedSettingsHide: qsTr("Hide advanced settings")
property string enableAccount: qsTr("Enable account")
// NameRegistrationDialog
@ -340,7 +341,8 @@ Item {
property string linkDeviceNetWorkError: qsTr("Error connecting to the network.\nPlease try again later.")
// BannedContacts
property string tipBannedContacts: qsTr("Display or hide banned contacts")
property string tipBannedContactsDisplay: qsTr("Display banned contacts")
property string tipBannedContactsHide: qsTr("Hide banned contacts")
// DeleteAccountDialog
property string confirmDeleteQuestion: qsTr("Do you really want to delete this account?")

View file

@ -59,7 +59,9 @@ ColumnLayout {
Layout.alignment: Qt.AlignHCenter
imageColor: JamiTheme.textColor
toolTipText: JamiStrings.tipAdvancedSettingsDisplay
toolTipText: advancedSettingsView.visible ?
JamiStrings.tipAdvancedSettingsHide :
JamiStrings.tipAdvancedSettingsDisplay
preferredSize: 32
source: advancedSettingsView.visible ?

View file

@ -87,7 +87,9 @@ ColumnLayout {
Layout.preferredWidth: JamiTheme.preferredFieldHeight
Layout.preferredHeight: JamiTheme.preferredFieldHeight
toolTipText: JamiStrings.tipBannedContacts
toolTipText: bannedListWidget.visible?
JamiStrings.tipBannedContactsHide :
JamiStrings.tipBannedContactsDisplay
imageColor: JamiTheme.textColor
source: bannedListWidget.visible?