/*SPDX-FileCopyrightText: 2012-2013 Eike Hein <hein@kde.org>SPDX-License-Identifier: GPL-2.0-or-later*/import QtQuickimport org.kde.plasma.core as PlasmaCoreimport org.kde.ksvg as KSvgimport org.kde.plasma.plasmoidKSvg.SvgItem {id: arrowanchors {bottom: arrow.parent.bottomhorizontalCenter: iconBox.horizontalCenter}visible: parent.model.IsGroupParentstates: [State {name: "top"when: Plasmoid.location === PlasmaCore.Types.TopEdgeAnchorChanges {target: arrowanchors.top: arrow.parent.topanchors.left: undefinedanchors.right: undefinedanchors.bottom: undefinedanchors.horizontalCenter: iconBox.horizontalCenteranchors.verticalCenter: undefined}},State {name: "left"when: Plasmoid.location === PlasmaCore.Types.LeftEdgeAnchorChanges {target: arrowanchors.top: undefinedanchors.left: arrow.parent.leftanchors.right: undefinedanchors.bottom: undefinedanchors.horizontalCenter: undefinedanchors.verticalCenter: iconBox.verticalCenter}},State {name: "right"when: Plasmoid.location === PlasmaCore.Types.RightEdgeAnchorChanges {target: arrowanchors.top: undefinedanchors.left: undefinedanchors.right: arrow.parent.rightanchors.bottom: undefinedanchors.horizontalCenter: undefinedanchors.verticalCenter: iconBox.verticalCenter}}]implicitWidth: Math.min(naturalSize.width, iconBox.width)implicitHeight: Math.min(naturalSize.height, iconBox.width)imagePath: "widgets/tasks"elementId: elementForLocation()function elementForLocation(): string {switch (Plasmoid.location) {case PlasmaCore.Types.LeftEdge:return "group-expander-left";case PlasmaCore.Types.TopEdge:return "group-expander-top";case PlasmaCore.Types.RightEdge:return "group-expander-right";case PlasmaCore.Types.BottomEdge:default:return "group-expander-bottom";}}}