Skip to content
Snippets Groups Projects
Commit 13a280df authored by trilene's avatar trilene Committed by Nicolas Werner
Browse files

Finesse PlaceCall dialog

parent 6427687d
No related branches found
No related tags found
No related merge requests found
...@@ -43,11 +43,10 @@ ApplicationWindow { ...@@ -43,11 +43,10 @@ ApplicationWindow {
Layout.leftMargin: 8 Layout.leftMargin: 8
Layout.rightMargin: 8 Layout.rightMargin: 8
spacing: 16
function validateMic() { function validateMic() {
if (CallManager.mics.length == 0) { if (CallManager.mics.length == 0) {
warningDialog.text = "No microphone found."; warningDialog.text = qsTr("No microphone found.");
warningDialog.open(); warningDialog.open();
return false; return false;
} }
...@@ -61,6 +60,10 @@ ApplicationWindow { ...@@ -61,6 +60,10 @@ ApplicationWindow {
displayName: TimelineManager.timeline.roomName displayName: TimelineManager.timeline.roomName
} }
Item {
implicitWidth: cameraCombo.visible ? 16 : 64
}
Button { Button {
text: qsTr("Voice") text: qsTr("Voice")
icon.source: "qrc:/icons/icons/ui/place-call.png" icon.source: "qrc:/icons/icons/ui/place-call.png"
...@@ -88,7 +91,6 @@ ApplicationWindow { ...@@ -88,7 +91,6 @@ ApplicationWindow {
} }
Button { Button {
palette: colors
text: qsTr("Cancel") text: qsTr("Cancel")
onClicked: { onClicked: {
close(); close();
...@@ -96,42 +98,46 @@ ApplicationWindow { ...@@ -96,42 +98,46 @@ ApplicationWindow {
} }
} }
RowLayout { ColumnLayout {
spacing: 8
Layout.leftMargin: 8 RowLayout {
Layout.rightMargin: 8
Layout.bottomMargin: cameraCombo.visible ? 0 : 16
Image { Layout.leftMargin: 8
Layout.preferredWidth: 22 Layout.rightMargin: 8
Layout.preferredHeight: 22 Layout.bottomMargin: cameraCombo.visible ? 0 : 16
source: "qrc:/icons/icons/ui/microphone-unmute.png"
}
ComboBox { Image {
id: micCombo Layout.preferredWidth: 22
Layout.fillWidth: true Layout.preferredHeight: 22
model: CallManager.mics source: "qrc:/icons/icons/ui/microphone-unmute.png"
} }
}
RowLayout { ComboBox {
id: micCombo
Layout.fillWidth: true
model: CallManager.mics
}
}
visible: CallManager.cameras.length > 0 RowLayout {
Layout.leftMargin: 8
Layout.rightMargin: 8
Layout.bottomMargin: 16
Image { visible: CallManager.cameras.length > 0
Layout.preferredWidth: 22 Layout.leftMargin: 8
Layout.preferredHeight: 22 Layout.rightMargin: 8
source: "qrc:/icons/icons/ui/video-call.png" Layout.bottomMargin: 16
}
Image {
Layout.preferredWidth: 22
Layout.preferredHeight: 22
source: "qrc:/icons/icons/ui/video-call.png"
}
ComboBox { ComboBox {
id: cameraCombo id: cameraCombo
Layout.fillWidth: true Layout.fillWidth: true
model: CallManager.cameras model: CallManager.cameras
}
} }
} }
} }
......
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