Warning, /plasma/plasma-bigscreen/containments/homescreen/package/contents/ui/launcher/delegates/AppDelegate.qml is written in an unsupported language. File is not indexed.
0001 /* 0002 SPDX-FileCopyrightText: 2019 Aditya Mehra <aix.m@outlook.com> 0003 SPDX-FileCopyrightText: 2019 Marco Martin <mart@kde.org> 0004 0005 SPDX-License-Identifier: GPL-2.0-or-later 0006 */ 0007 0008 import QtQuick 2.14 0009 import org.kde.mycroft.bigscreen 1.0 as BigScreen 0010 import org.kde.kirigami 2.12 as Kirigami 0011 import org.kde.plasma.private.nanoshell as NanoShell 0012 import org.kde.plasma.plasmoid 2.0 0013 0014 BigScreen.IconDelegate { 0015 id: delegate 0016 readonly property var appStorageIdRole: modelData.ApplicationStorageIdRole 0017 0018 icon.name: modelData ? modelData.ApplicationIconRole : "" 0019 text: modelData ? modelData.ApplicationNameRole : "" 0020 useIconColors: plasmoid.configuration.coloredTiles 0021 compactMode: plasmoid.configuration.expandingTiles 0022 0023 onClicked: { 0024 BigScreen.NavigationSoundEffects.playClickedSound() 0025 NanoShell.StartupFeedback.open( 0026 delegate.icon.name.length > 0 ? delegate.icon.name : model.decoration, 0027 delegate.text, 0028 delegate.Kirigami.ScenePosition.x + delegate.width/2, 0029 delegate.Kirigami.ScenePosition.y + delegate.height/2, 0030 Math.min(delegate.width, delegate.height), delegate.Kirigami.Theme.backgroundColor); 0031 plasmoid.applicationListModel.runApplication(modelData.ApplicationStorageIdRole) 0032 recentView.forceActiveFocus(); 0033 recentView.currentIndex = 0; 0034 } 0035 }