import QtQuick 2.11

Item {
    signal userClicked
    Image {
        id:image
        anchors.fill: parent
        source: "qrc:/img/return.png"
        MouseArea{
            anchors.fill: parent
            onPressed: {
                image.opacity = 0.5
            }
            onReleased: {
                image.opacity = 1.0
            }
            onClicked: {
                userClicked()
            }
        }
    }
}
