diff options
Diffstat (limited to 'BtnShrink.qml')
-rw-r--r-- | BtnShrink.qml | 30 |
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" + } +} |