/** Copyright (C) 2020 Ivan Cukic <ivan.cukic(at)kde.org>** This program is free software; you can redistribute it and/or modify* it under the terms of the GNU General Public License version 2,* or (at your option) any later version, as published by the Free* Software Foundation** This program is distributed in the hope that it will be useful,* but WITHOUT ANY WARRANTY; without even the implied warranty of* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the* GNU General Public License for more details** You should have received a copy of the GNU General Public* License along with this program; if not, write to the* Free Software Foundation, Inc.,* 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.*/import QtQuick 2.0import org.kde.plasma.core 2.0 as PlasmaCoreimport org.kde.plasma.components 2.0 as PlasmaComponentsimport org.kde.draganddrop 2.0 as DNDDND.DropArea {id: rootsignal taskDropped(variant mimeData, variant modifiers)signal clicked()signal entered()property int topPadding: 0property string activityName: ""property bool selected: falseproperty string actionTitle: ""property bool isHovered: falseproperty bool actionVisible: falsePlasmaComponents.Highlight {id: dropHighlightanchors {fill: parent// topMargin: icon.height + 3 * PlasmaCore.Units.smallSpacingtopMargin: root.topPadding}visible: root.isHoveredz: -1}Text {id: dropAreaLeftTextanchors {fill: dropHighlightleftMargin: PlasmaCore.Units.largeSpacingrightMargin: PlasmaCore.Units.largeSpacing}color: PlasmaCore.Theme.textColorvisible: root.actionVisibletext: root.actionTitleverticalAlignment: Text.AlignVCenterhorizontalAlignment: Text.AlignHCentermaximumLineCount: 3}anchors {left: parent.leftright: parent.horizontalCentertop: parent.topbottom: parent.bottom}preventStealing: trueenabled: trueonDrop: {root.taskDropped(event.mimeData, event.modifiers);}onDragEnter: {root.isHovered = true;}onDragLeave: {root.isHovered = false;}MouseArea {anchors.fill : parentonClicked : root.clicked()hoverEnabled : trueonEntered : root.entered()Accessible.name : root.activityNameAccessible.role : Accessible.ButtonAccessible.selected : root.selectedAccessible.onPressAction : root.clicked()}}