Commit f0091a44 authored by Ronan Abhamon's avatar Ronan Abhamon

feat(ui/views/App/IncallFullscreen): hide buttons after 5s

parent 50d9baf9
...@@ -17,6 +17,7 @@ Window { ...@@ -17,6 +17,7 @@ Window {
// --------------------------------------------------------------------------- // ---------------------------------------------------------------------------
property var call property var call
property bool hideButtons: false
// --------------------------------------------------------------------------- // ---------------------------------------------------------------------------
...@@ -54,6 +55,35 @@ Window { ...@@ -54,6 +55,35 @@ Window {
call: incall.call call: incall.call
} }
// -------------------------------------------------------------------------
// Handle mouse move / Hide buttons.
// -------------------------------------------------------------------------
MouseArea {
Timer {
id: hideButtonsTimer
interval: 5000
running: true
onTriggered: hideButtons = true
}
anchors.fill: parent
acceptedButtons: Qt.NoButton
hoverEnabled: true
propagateComposedEvents: true
onEntered: hideButtonsTimer.start()
onExited: hideButtonsTimer.stop()
onPositionChanged: {
hideButtonsTimer.stop()
hideButtons = false
hideButtonsTimer.start()
}
}
ColumnLayout { ColumnLayout {
anchors { anchors {
fill: parent fill: parent
...@@ -81,6 +111,7 @@ Window { ...@@ -81,6 +111,7 @@ Window {
anchors.left: parent.left anchors.left: parent.left
icon: 'call_quality_0' icon: 'call_quality_0'
iconSize: CallStyle.header.iconSize iconSize: CallStyle.header.iconSize
visible: !hideButtons
// See: http://www.linphone.org/docs/liblinphone/group__call__misc.html#ga62c7d3d08531b0cc634b797e273a0a73 // See: http://www.linphone.org/docs/liblinphone/group__call__misc.html#ga62c7d3d08531b0cc634b797e273a0a73
Timer { Timer {
...@@ -136,6 +167,7 @@ Window { ...@@ -136,6 +167,7 @@ Window {
ActionBar { ActionBar {
anchors.right: parent.right anchors.right: parent.right
iconSize: CallStyle.header.iconSize iconSize: CallStyle.header.iconSize
visible: !hideButtons
ActionButton { ActionButton {
icon: 'screenshot' icon: 'screenshot'
...@@ -167,6 +199,7 @@ Window { ...@@ -167,6 +199,7 @@ Window {
Layout.alignment: Qt.AlignBottom Layout.alignment: Qt.AlignBottom
Layout.fillWidth: true Layout.fillWidth: true
Layout.preferredHeight: CallStyle.actionArea.height Layout.preferredHeight: CallStyle.actionArea.height
visible: !hideButtons
GridLayout { GridLayout {
anchors { anchors {
...@@ -202,16 +235,6 @@ Window { ...@@ -202,16 +235,6 @@ Window {
} }
} }
Camera {
anchors.centerIn: parent
height: CallStyle.actionArea.userVideo.height
width: CallStyle.actionArea.userVideo.width
isPreview: true
call: incall.call
}
ActionBar { ActionBar {
anchors { anchors {
right: parent.right right: parent.right
......
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