feat(ui/views/App/Calls/Incall): use Connections component

This commit is contained in:
Ronan Abhamon 2017-02-20 12:16:03 +01:00
parent d366168530
commit 80fdfd233c

View file

@ -43,8 +43,10 @@ Rectangle {
// Handle video requests.
// ---------------------------------------------------------------------------
SmartConnect {
Component.onCompleted: this.connect(call, 'videoRequested', function () {
Connections {
target: call
onVideoRequested: {
var dialog
// Close dialog after 10s.
@ -79,7 +81,7 @@ Rectangle {
},
title: qsTr('acceptVideoTitle')
})
})
}
}
// ---------------------------------------------------------------------------