diff --git a/src/qml/ImagesView.qml b/src/qml/ImagesView.qml --- a/src/qml/ImagesView.qml +++ b/src/qml/ImagesView.qml @@ -269,6 +269,21 @@ } } } + + Item { + Kirigami.FormData.isSection: true + Kirigami.FormData.label: i18n("Cameras") + } + + ComboBox { + Layout.fillWidth: parent + model: devicesModel + textRole: "display" + enabled: count>1 + onAccepted: { + devicesModel.playingDeviceUdi = udi + } + } } // Otherwise the back button might not always be right on the bottom diff --git a/src/qml/Main.qml b/src/qml/Main.qml --- a/src/qml/Main.qml +++ b/src/qml/Main.qml @@ -199,24 +199,6 @@ VideoItem { surface: videoSurface1 anchors.fill: parent - - ColumnLayout { - spacing: Kirigami.Units.smallSpacing - anchors.margins: Kirigami.Units.smallSpacing - anchors.top: parent.top - anchors.left: parent.left - visible: devicesModel.count>1 - - Repeater { - model: devicesModel - delegate: Button { - width: 30 - iconName: "camera-web" - tooltip: display - onClicked: devicesModel.playingDeviceUdi = udi - } - } - } } Text {