Skip to content
Snippets Groups Projects
Unverified Commit c95d29e0 authored by Sébastien Blin's avatar Sébastien Blin
Browse files

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
parent 81934737
No related branches found
No related tags found
No related merge requests found
......@@ -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?")
......
......@@ -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 ?
......
......@@ -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?
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment