*/
import QtQuick 2.0
+import QtCamera 1.0
Column {
+ property Camera camera: null
+
id: col
spacing: 10
width: parent.width
width: parent.width
}
+ SectionHeader {
+ text: qsTr("Camera")
+ width: parent.width
+ }
+
+ CameraButtonRow {
+ anchors.horizontalCenter: parent.horizontalCenter
+ // TODO: test this
+ enabled: camera != null && camera.running && camera.idle
+
+ CameraButton {
+ text: qsTr("Back (Primary)");
+ checkable: true
+ checked: settings.device == 0
+ onClicked: settings.device = 0
+ }
+
+ CameraButton {
+ text: qsTr("Front (Secondary)");
+ checkable: true
+ checked: settings.device == 1
+ onClicked: settings.device = 1
+ }
+ }
+
TextSwitch {
text: qsTr("Show grid lines")