Newer
Older
import QtQuick.Layouts 1.2
text: qsTr("Place a call to ") + TimelineManager.timeline.roomName + "?"
function validateMic() {
if (CallManager.mics.length == 0) {
var dialog = deviceError.createObject(timelineRoot, {
"errorString": qsTr("No microphone found."),
Layout.leftMargin: 8
Layout.rightMargin: 8
width: avatarSize
height: avatarSize
url: TimelineManager.timeline.roomAvatarUrl.replace("mxc://", "image://MxcImage/")
displayName: TimelineManager.timeline.roomName
onClicked: TimelineManager.openImageOverlay(TimelineManager.timeline.avatarUrl(userid), TimelineManager.timeline.data.id)
icon.source: "qrc:/icons/icons/ui/place-call.png"
onClicked: {
CallManager.sendInvite(TimelineManager.timeline.roomId(), false);
close();
}
}
}
Button {
visible: CallManager.cameras.length > 0
icon.source: "qrc:/icons/icons/ui/video-call.png"
onClicked: {
Settings.microphone = micCombo.currentText;
Settings.camera = cameraCombo.currentText;
CallManager.sendInvite(TimelineManager.timeline.roomId(), true);
close();
}
}
}
Button {
text: qsTr("Cancel")
onClicked: {
close();
}
}
RowLayout {
Layout.leftMargin: 8
Layout.rightMargin: 8
Image {
Layout.preferredWidth: 22
Layout.preferredHeight: 22
source: "image://colorimage/:/icons/icons/ui/microphone-unmute.png?" + colors.windowText
Layout.fillWidth: true
model: CallManager.mics
}
RowLayout {
visible: CallManager.cameras.length > 0
Layout.leftMargin: 8
Layout.rightMargin: 8
Image {
Layout.preferredWidth: 22
Layout.preferredHeight: 22
source: "image://colorimage/:/icons/icons/ui/video-call.png?" + colors.windowText
Layout.fillWidth: true
model: CallManager.cameras
}
background: Rectangle {
color: colors.window
border.color: colors.windowText
}