Commit 3881bcac authored by Ronan Abhamon's avatar Ronan Abhamon

feat(Incall): add tooltips on recording and screenshot buttons

parent fa149d22
...@@ -829,6 +829,33 @@ Server url not configured.</translation> ...@@ -829,6 +829,33 @@ Server url not configured.</translation>
<source>callNotSecured</source> <source>callNotSecured</source>
<translation>Call not encrypted.</translation> <translation>Call not encrypted.</translation>
</message> </message>
<message>
<source>takeSnapshotLabel</source>
<translation>Take a snapshot.</translation>
</message>
<message>
<source>startRecordingLabel</source>
<translation>Start recording.</translation>
</message>
<message>
<source>stopRecordingLabel</source>
<translation>Stop recording.</translation>
</message>
</context>
<context>
<name>IncallFullscreenWindow</name>
<message>
<source>takeSnapshotLabel</source>
<translation>Take a snapshot.</translation>
</message>
<message>
<source>startRecordingLabel</source>
<translation>Start recording.</translation>
</message>
<message>
<source>stopRecordingLabel</source>
<translation>Stop recording.</translation>
</message>
</context> </context>
<context> <context>
<name>InviteFriends</name> <name>InviteFriends</name>
......
...@@ -829,6 +829,33 @@ Url du serveur non configurée.</translation> ...@@ -829,6 +829,33 @@ Url du serveur non configurée.</translation>
<source>callNotSecured</source> <source>callNotSecured</source>
<translation>Appel non chiffré.</translation> <translation>Appel non chiffré.</translation>
</message> </message>
<message>
<source>takeSnapshotLabel</source>
<translation>Prendre une capture d&apos;écran.</translation>
</message>
<message>
<source>startRecordingLabel</source>
<translation>Commencer un enregistrement.</translation>
</message>
<message>
<source>stopRecordingLabel</source>
<translation>Stopper un enregistrement.</translation>
</message>
</context>
<context>
<name>IncallFullscreenWindow</name>
<message>
<source>takeSnapshotLabel</source>
<translation>Prendre une capture d&apos;écran.</translation>
</message>
<message>
<source>startRecordingLabel</source>
<translation>Commencer un enregistrement.</translation>
</message>
<message>
<source>stopRecordingLabel</source>
<translation>Stopper un enregistrement.</translation>
</message>
</context> </context>
<context> <context>
<name>InviteFriends</name> <name>InviteFriends</name>
......
...@@ -165,9 +165,15 @@ Rectangle { ...@@ -165,9 +165,15 @@ Rectangle {
visible: incall.call.videoEnabled visible: incall.call.videoEnabled
onClicked: incall.call.takeSnapshot() onClicked: incall.call.takeSnapshot()
TooltipArea {
text: qsTr('takeSnapshotLabel')
}
} }
ActionSwitch { ActionSwitch {
id: recordingSwitch
enabled: incall.call.recording enabled: incall.call.recording
icon: 'record' icon: 'record'
useStates: false useStates: false
...@@ -178,6 +184,12 @@ Rectangle { ...@@ -178,6 +184,12 @@ Rectangle {
? call.startRecording() ? call.startRecording()
: call.stopRecording() : call.stopRecording()
} }
TooltipArea {
text: !recordingSwitch.enabled
? qsTr('startRecordingLabel')
: qsTr('stopRecordingLabel')
}
} }
ActionButton { ActionButton {
......
...@@ -216,14 +216,28 @@ Window { ...@@ -216,14 +216,28 @@ Window {
icon: 'screenshot' icon: 'screenshot'
onClicked: call.takeSnapshot() onClicked: call.takeSnapshot()
TooltipArea {
text: qsTr('takeSnapshotLabel')
}
} }
ActionSwitch { ActionSwitch {
id: recordingSwitch
enabled: call.recording enabled: call.recording
icon: 'record' icon: 'record'
useStates: false useStates: false
onClicked: !enabled ? call.startRecording() : call.stopRecording() onClicked: !enabled
? call.startRecording()
: call.stopRecording()
TooltipArea {
text: !recordingSwitch.enabled
? qsTr('startRecordingLabel')
: qsTr('stopRecordingLabel')
}
} }
ActionButton { ActionButton {
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment