summaryrefslogtreecommitdiffstats
path: root/util/qt3d/modeltweak/qml/Widgets/ZoomControls.qml
blob: accdb54b5d67fb603eafec0d6db466b376772ade (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
29
30
31
32
33
34
35
36
37
38
39
40
41
import QtQuick 1.0
import Qt3D 1.0
import ModelTweak 1.0

Rectangle {
    radius: 4
    border.width: 1
    border.color: "#191919"
    width: 16 + 2
    height: 16 + 2 + 16 + 2
    color: "#999999"

    signal zoomIn()
    signal zoomOut()

    Image {
        id: imgIn
        source: "images/zoomin.png"
        x: 2
        y: 2
        MouseArea {
            anchors.fill: parent
            onClicked: {
                zoomIn()
            }
        }
    }

    Image {
        id: imgOut
        source: "images/zoomout.png"
        x: 2
        y: 20
        MouseArea {
            anchors.fill: parent
            onClicked: {
                zoomOut()
            }
        }
    }
}