Warning, /plasma/plasma-desktop/applets/taskmanager/package/contents/ui/TaskList.qml is written in an unsupported language. File is not indexed.
0001 /* 0002 SPDX-FileCopyrightText: 2012-2013 Eike Hein <hein@kde.org> 0003 0004 SPDX-License-Identifier: GPL-2.0-or-later 0005 */ 0006 0007 import QtQuick 2.15 0008 import org.kde.kirigami 2.20 as Kirigami 0009 import org.kde.plasma.plasmoid 2.0 0010 0011 Grid { 0012 property bool animating: false 0013 0014 layoutDirection: (Plasmoid.configuration.reverseMode && !tasks.vertical) 0015 ? (Qt.application.layoutDirection === Qt.LeftToRight) 0016 ? Qt.RightToLeft 0017 : Qt.LeftToRight 0018 : Qt.application.layoutDirection 0019 0020 rows: tasks.vertical ? -1 : Math.floor(height / children[0].height) 0021 columns: tasks.vertical ? Math.floor(width / children[0].width) : -1 0022 0023 move: Transition { 0024 SequentialAnimation { 0025 PropertyAction { target: taskList; property: "animating"; value: true } 0026 0027 NumberAnimation { 0028 properties: "x, y" 0029 easing.type: Easing.OutQuad 0030 duration: Kirigami.Units.longDuration 0031 } 0032 0033 PropertyAction { target: taskList; property: "animating"; value: false } 0034 } 0035 } 0036 }