blob: 74a74928128480a23e484b67847d52ee6990e158 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
|
// Copyright (C) 2023 The Qt Company Ltd.
// SPDX-License-Identifier: LicenseRef-Qt-Commercial OR GPL-3.0-only
import QtQuick
Image {
id: root
height: parent.height
width: height
sourceSize: Qt.size(width, height)
signal clicked()
MouseArea {
anchors.fill: parent
anchors.margins: - width * 0.3
onClicked: root.clicked()
}
}
|