add testqt source
[apps/navigation.git] / app / BtnShrink.qml
diff --git a/app/BtnShrink.qml b/app/BtnShrink.qml
new file mode 100755 (executable)
index 0000000..1c67e5b
--- /dev/null
@@ -0,0 +1,25 @@
+import QtQuick 2.0\r
+import QtQuick.Controls 1.5\r
+\r
+Item {\r
+       Button {\r
+               id: btn_shrink\r
+               width: 100\r
+               height: 100\r
+\r
+               function doSomething() {\r
+                       // ...\r
+               }\r
+\r
+               onClicked: { doSomething() }\r
+\r
+               Image {\r
+                       id: image\r
+                       width: 92\r
+                       height: 92\r
+                       anchors.verticalCenter: parent.verticalCenter\r
+                       anchors.horizontalCenter: parent.horizontalCenter\r
+                       source: "images/Shrink_button.bmp"\r
+               }\r
+       }\r
+}\r