-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathPhotoBottomSheet.qml
46 lines (39 loc) · 1.06 KB
/
PhotoBottomSheet.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
import QtQuick 2.5
import QuickAndroid 0.1
import QuickAndroid.Styles 0.1
BottomSheet {
id : bottomSheet
Column {
width: bottomSheet.width
Item {
width: bottomSheet.width
height: 56 * A.dp
Text {
anchors.verticalCenter: parent.verticalCenter
text: "Add photo"
color: Constants.black54
x: 16 * A.dp
}
}
ListItem {
iconSource: A.drawable("ic_camera");
iconSourceSize: Qt.size(24 * A.dp,24 * A.dp)
title: "Take Photo"
showDivider: false
onClicked: {
imagePicker.takePhoto();
bottomSheet.close();
}
}
ListItem {
iconSource: A.drawable("ic_image");
iconSourceSize: Qt.size(24 * A.dp,24 * A.dp)
title: "Pick Image"
showDivider: false
onClicked: {
imagePicker.pickImage();
bottomSheet.close();
}
}
}
}