Skip to content
Snippets Groups Projects
Commit 740cb407 authored by Albert  Babí Oller's avatar Albert Babí Oller Committed by Ming Rui Zhang
Browse files

callview: context menu accessible only from call rectangle

Change-Id: Ic687f86ab965b3aa3244a743c5e0e2bd66590cad
Gitlab: #150
parent 9d41a3bc
No related branches found
No related tags found
No related merge requests found
......@@ -91,9 +91,17 @@ Rectangle {
hoverEnabled: true
propagateComposedEvents: true
acceptedButtons: Qt.LeftButton
acceptedButtons: Qt.LeftButton | Qt.RightButton
onDoubleClicked: callStackView.toggleFullScreen()
onDoubleClicked: {
if (mouse.button === Qt.LeftButton)
callStackView.toggleFullScreen()
}
onClicked: {
if (mouse.button === Qt.RightButton)
audioCallOverlay.openCallViewContextMenuInPos(mouse.x, mouse.y)
}
CallOverlay {
id: audioCallOverlay
......@@ -239,15 +247,5 @@ Rectangle {
}
}
MouseArea {
anchors.fill: parent
acceptedButtons: Qt.RightButton
onClicked: {
audioCallOverlay.openCallViewContextMenuInPos(mouse.x, mouse.y)
}
}
color: "black"
}
......@@ -151,12 +151,21 @@ Rectangle {
MouseArea {
anchors.fill: parent
hoverEnabled: true
propagateComposedEvents: true
acceptedButtons: Qt.LeftButton
acceptedButtons: Qt.LeftButton | Qt.RightButton
onDoubleClicked: callStackView.toggleFullScreen()
onDoubleClicked: {
if (mouse.button === Qt.LeftButton)
callStackView.toggleFullScreen()
}
onClicked: {
if (mouse.button === Qt.RightButton)
videoCallOverlay.openCallViewContextMenuInPos(mouse.x, mouse.y)
}
CallOverlay {
id: videoCallOverlay
......@@ -325,16 +334,6 @@ Rectangle {
}
}
MouseArea {
anchors.fill: parent
acceptedButtons: Qt.RightButton
onClicked: {
videoCallOverlay.openCallViewContextMenuInPos(mouse.x, mouse.y)
}
}
onBestNameChanged: {
ContactAdapter.setCalleeDisplayName(bestName)
}
......
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