forked from ubports/camera-app
-
Notifications
You must be signed in to change notification settings - Fork 0
/
AdvancedOptions.qml
49 lines (38 loc) · 1.1 KB
/
AdvancedOptions.qml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
import QtQuick 2.0
import Ubuntu.Components 1.3
import Qt.labs.settings 1.0
Flickable {
id:advancedOptions
property Settings settings: viewFinderOverlay.settings
height:units.gu(25)
anchors {
left: parent.left
right: parent.right
leftMargin: units.gu(4)
rightMargin: units.gu(4)
}
interactive: true
Column {
anchors.fill: parent
ListItem {
Label {
color: "white"
text: i18n.tr("Advanced Options")
}
}
ListItem {
ListItemLayout {
id: datestampSwitchLayout
title.text: i18n.tr("Add date stamp on captured images")
title.color: "white"
Switch {
SlotsLayout.position: SlotsLayout.Last
checked: advancedOptions.settings.dateStampImages
onClicked: advancedOptions.settings.dateStampImages = checked
}
}
divider.visible: false
height: datestampSwitchLayout.height
}
}
}