Changed the dimensions for buttons to 56x56 instead of 64x64
[harmattan/cameraplus] / qml / Selector.qml
1 // -*- qml -*-
2 import QtQuick 1.1
3 import com.nokia.meego 1.1
4 import QtCamera 1.0
5
6 Button {
7         id: button
8         width: 56
9         height: 56
10
11         opacity: 0.5
12
13         property alias widget: __widget.children
14         property bool timerConstraints: false
15
16         checkable: true
17
18         function close() {
19                 button.checked = false;
20         }
21
22         Timer {
23                 interval: 2000
24                 running: mouse.enabled && !button.timerConstraints
25                 repeat: false
26                 onTriggered: button.close();
27         }
28
29         MouseArea {
30                 id: mouse
31                 parent: button.parent
32                 anchors.fill: parent
33                 enabled: button.checked
34                 onClicked: button.close();
35
36                 Item {
37                         id: __widget
38                         y: button.y
39                         x: button.x + button.width + 20
40                         visible: button.checked
41                 }
42         }
43 }