Add mainwindow Tooltips in tr files

This commit is contained in:
Julien Wadel 2021-09-06 14:00:17 +02:00
parent 9818ebddb9
commit 509c813135
2 changed files with 22 additions and 4 deletions

View file

@ -1274,6 +1274,21 @@ Click here: <a href="%1">%1</a>
<extracomment>&apos;Open Conference&apos; : Tooltip to illustrate a button</extracomment>
<translation>Open Conference</translation>
</message>
<message>
<source>hideTimeline</source>
<extracomment>&apos;Hide Timeline&apos; : Tooltip for a button that hide the timeline</extracomment>
<translation>Hide Timeline</translation>
</message>
<message>
<source>openTimeline</source>
<extracomment>&apos;Open Timeline&apos; : Tooltip for a button that open the timeline</extracomment>
<translation>Open Timeline</translation>
</message>
<message>
<source>openHome</source>
<extracomment>&apos;Open Home&apos; : Tooltip for a button that open the home view</extracomment>
<translation>Open Home</translation>
</message>
</context>
<context>
<name>MainWindowMenuBar</name>

View file

@ -104,14 +104,19 @@ ApplicationWindow {
ActionButton {
icon: (leftPanel.visible?'panel_shown':'panel_hidden')
tooltipText : (leftPanel.visible?'Open Timeline':'Hide Timeline')
//: 'Hide Timeline' : Tooltip for a button that hide the timeline
tooltipText : (leftPanel.visible?qsTr('hideTimeline')
//: 'Open Timeline' : Tooltip for a button that open the timeline
:qsTr('openTimeline'))
iconSize: MainWindowStyle.panelButtonSize
//autoIcon: true
onClicked: leftPanel.visible = !leftPanel.visible
}
ActionButton {
icon: 'home'
tooltipText : 'Open Home'
//: 'Open Home' : Tooltip for a button that open the home view
tooltipText : qsTr('openHome')
iconSize: MainWindowStyle.homeButtonSize
//autoIcon: true
onClicked: setView('Home')
@ -123,8 +128,6 @@ ApplicationWindow {
Layout.preferredHeight: parent.height
Layout.preferredWidth: MainWindowStyle.accountStatus.width
Layout.fillWidth: false
//height: parent.height
//width: MainWindowStyle.accountStatus.width
TooltipArea {
text: AccountSettingsModel.sipAddress