summaryrefslogtreecommitdiffstats
path: root/util/qt3d/modeltweak/qml/Widgets
diff options
context:
space:
mode:
Diffstat (limited to 'util/qt3d/modeltweak/qml/Widgets')
-rw-r--r--util/qt3d/modeltweak/qml/Widgets/ZoomControls.qml41
-rw-r--r--util/qt3d/modeltweak/qml/Widgets/images/zoomin.pngbin0 -> 187 bytes
-rw-r--r--util/qt3d/modeltweak/qml/Widgets/images/zoomout.pngbin0 -> 155 bytes
3 files changed, 41 insertions, 0 deletions
diff --git a/util/qt3d/modeltweak/qml/Widgets/ZoomControls.qml b/util/qt3d/modeltweak/qml/Widgets/ZoomControls.qml
new file mode 100644
index 00000000..accdb54b
--- /dev/null
+++ b/util/qt3d/modeltweak/qml/Widgets/ZoomControls.qml
@@ -0,0 +1,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()
+ }
+ }
+ }
+}
diff --git a/util/qt3d/modeltweak/qml/Widgets/images/zoomin.png b/util/qt3d/modeltweak/qml/Widgets/images/zoomin.png
new file mode 100644
index 00000000..e4434a07
--- /dev/null
+++ b/util/qt3d/modeltweak/qml/Widgets/images/zoomin.png
Binary files differ
diff --git a/util/qt3d/modeltweak/qml/Widgets/images/zoomout.png b/util/qt3d/modeltweak/qml/Widgets/images/zoomout.png
new file mode 100644
index 00000000..4c853bc6
--- /dev/null
+++ b/util/qt3d/modeltweak/qml/Widgets/images/zoomout.png
Binary files differ