aboutsummaryrefslogtreecommitdiffstats
path: root/BtnShrink.qml
diff options
context:
space:
mode:
authorNaoto Yamaguchi <naoto.yamaguchi@aisin.co.jp>2021-08-02 13:20:06 +0000
committerNaoto Yamaguchi <naoto.yamaguchi@aisin.co.jp>2021-08-02 13:20:57 +0000
commit4c9b4d61b97b60ce1ec24a4db203199ae54936d8 (patch)
tree85758532d23a310cd117297c6144905e9adce5c5 /BtnShrink.qml
Initial commit for mominavi
mominavi is a example navigation app based on Qt example. Signed-off-by: Naoto Yamaguchi <naoto.yamaguchi@aisin.co.jp>
Diffstat (limited to 'BtnShrink.qml')
-rw-r--r--BtnShrink.qml30
1 files changed, 30 insertions, 0 deletions
diff --git a/BtnShrink.qml b/BtnShrink.qml
new file mode 100644
index 0000000..01ec6d2
--- /dev/null
+++ b/BtnShrink.qml
@@ -0,0 +1,30 @@
+// SPDX-License-Identifier: GPL-3.0+
+// Copyright (C) 2021 AISIN CORPORATION
+
+import QtQuick 2.0
+import QtQuick.Controls 1.5
+
+Item {
+ Button {
+ id: btn_shrink
+ width: 100
+ height: 100
+ opacity: 0
+
+ function zoomDown() {
+ map.zoomLevel -= 1
+ }
+
+ onClicked: { zoomDown() }
+ }
+
+ Image {
+ id: image
+ x: 4
+ y: 4
+ width: 92
+ height: 92
+ opacity: 1
+ source: "images/03_DETAIL.png"
+ }
+}