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>
<source>callNotSecured</source>
<translation>Call not encrypted.</translation>
</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>
<name>InviteFriends</name>
......
......@@ -829,6 +829,33 @@ Url du serveur non configurée.</translation>
<source>callNotSecured</source>
<translation>Appel non chiffré.</translation>
</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>
<name>InviteFriends</name>
......
......@@ -165,9 +165,15 @@ Rectangle {
visible: incall.call.videoEnabled
onClicked: incall.call.takeSnapshot()
TooltipArea {
text: qsTr('takeSnapshotLabel')
}
}
ActionSwitch {
id: recordingSwitch
enabled: incall.call.recording
icon: 'record'
useStates: false
......@@ -178,6 +184,12 @@ Rectangle {
? call.startRecording()
: call.stopRecording()
}
TooltipArea {
text: !recordingSwitch.enabled
? qsTr('startRecordingLabel')
: qsTr('stopRecordingLabel')
}
}
ActionButton {
......
......@@ -216,14 +216,28 @@ Window {
icon: 'screenshot'
onClicked: call.takeSnapshot()
TooltipArea {
text: qsTr('takeSnapshotLabel')
}
}
ActionSwitch {
id: recordingSwitch
enabled: call.recording
icon: 'record'
useStates: false
onClicked: !enabled ? call.startRecording() : call.stopRecording()
onClicked: !enabled
? call.startRecording()
: call.stopRecording()
TooltipArea {
text: !recordingSwitch.enabled
? qsTr('startRecordingLabel')
: qsTr('stopRecordingLabel')
}
}
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