/*SPDX-FileCopyrightText: 2013 Marco Martin <mart@kde.org>SPDX-License-Identifier: GPL-2.0-or-later*/import QtQuick 2.0import QtQuick.Controls 2.3 as QQC2QQC2.Button {id: mouseInputButtonproperty string defaultText: i18nd("plasma_shell_org.kde.plasma.desktop", "Add Action")text: defaultTextcheckable: trueproperty string eventStringonCheckedChanged: {if (checked) {text = i18nd("plasma_shell_org.kde.plasma.desktop", "Input Here");mouseInputArea.enabled = true;}}MouseArea {id: mouseInputAreaanchors.fill: parentacceptedButtons: Qt.AllButtonsenabled: falseonClicked: {var newEventString = configDialog.currentContainmentActionsModel.mouseEventString(mouse.button, mouse.modifiers);if (eventString === newEventString || !configDialog.currentContainmentActionsModel.isTriggerUsed(newEventString)) {eventString = newEventString;mouseInputButton.text = defaultText;mouseInputButton.checked = false;enabled = false;}}onWheel: {var newEventString = configDialog.currentContainmentActionsModel.wheelEventString(wheel);if (eventString === newEventString || !configDialog.currentContainmentActionsModel.isTriggerUsed(newEventString)) {eventString = newEventString;mouseInputButton.text = defaultText;mouseInputButton.checked = false;enabled = false;}}}}