summaryrefslogtreecommitdiffstats
path: root/basicsuite/Camera/CameraSetting.qml
blob: 224c70cf11cfdc6706a3030e45512810cf70812f (plain)
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
import QtQuick 2.0

Item {
    width: button.width
    height: button.height
    visible: enabled && picker.count > 1

    property alias title: button.title
    property alias selectedValue: picker.value
    property alias currentIndex: picker.currentIndex
    property alias model: picker.model
    property alias count: picker.count

    CameraControlButton {
        id: button
        anchors.centerIn: parent

        subtitle: picker.name
        toggled: picker.visible

        onClicked: picker.visible = true
    }

    Picker {
        id: picker
    }

}