aboutsummaryrefslogtreecommitdiffstats
path: root/src/quick/doc/snippets/qmlapp/codingconventions/javascript-semicolons.qml
blob: 230339614c699570833c77b59c27f63007605c6b (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
// Copyright (C) 2016 The Qt Company Ltd.
// SPDX-License-Identifier: LicenseRef-Qt-Commercial OR BSD-3-Clause

import QtQuick

//![0]
MouseArea {
    anchors.fill: parent
    onClicked: event => {
        var scenePos = mapToItem(null, event.x, event.y);
        console.log("MouseArea was clicked at scene pos " + scenePos);
    }
}
//![0]