Files
neochat/imports/NeoChat/Component/AutoMouseArea.qml
Tobias Fella 3a70a9d91c Set all internal qml versions to 1.0
They're useless and anything else just causes problem
2020-11-11 20:14:43 +01:00

19 lines
419 B
QML

/**
* SPDX-FileCopyrightText: 2018-2019 Black Hat <bhat@encom.eu.org>
*
* SPDX-License-Identifier: GPL-3.0-only
*/
import QtQuick 2.12
import NeoChat.Setting 1.0
MouseArea {
signal primaryClicked()
signal secondaryClicked()
acceptedButtons: Qt.LeftButton | Qt.RightButton
onClicked: mouse.button == Qt.RightButton ? secondaryClicked() : primaryClicked()
onPressAndHold: secondaryClicked()
}