Warning, /plasma/plasma-bigscreen/containments/homescreen/package/contents/ui/indicators/AbstractIndicator.qml is written in an unsupported language. File is not indexed.
0001 /* 0002 SPDX-FileCopyrightText: 2019 Marco Martin <mart@kde.org> 0003 SPDX-FileCopyrightText: 2013-2017 Jan Grulich <jgrulich@redhat.com> 0004 0005 SPDX-License-Identifier: LGPL-2.1-only OR LGPL-3.0-only OR LicenseRef-KDE-Accepted-LGPL 0006 */ 0007 0008 import QtQuick 2.14 0009 import QtQuick.Layouts 1.14 0010 import org.kde.plasma.core 2.0 as PlasmaCore 0011 import org.kde.plasma.components 3.0 as PlasmaComponents 0012 import org.kde.mycroft.bigscreen 1.0 as BigScreen 0013 import org.kde.kirigami as Kirigami 0014 import org.kde.ksvg as KSvg 0015 0016 PlasmaComponents.Button { 0017 id: button 0018 0019 Layout.fillHeight: true 0020 Layout.preferredWidth: height 0021 0022 leftPadding: 0 0023 topPadding: 0 0024 rightPadding: 0 0025 bottomPadding: 0 0026 0027 background: KSvg.FrameSvgItem { 0028 id: frame 0029 imagePath: "widgets/viewitem" 0030 prefix: "hover" 0031 // FIXME olorGroup: Kirigami.Theme.colorGroup 0032 0033 visible: button.activeFocus 0034 } 0035 0036 contentItem: Kirigami.Icon { 0037 id: icon 0038 source: button.icon.name 0039 // FIXME colorGroup: Kirigami.Theme.colorGroup 0040 } 0041 0042 Keys.onReturnPressed: (event)=> { 0043 clicked(); 0044 } 0045 0046 onClicked: (event)=> { 0047 BigScreen.NavigationSoundEffects.playClickedSound() 0048 } 0049 0050 Keys.onPressed: (event)=> { 0051 switch (event.key) { 0052 case Qt.Key_Down: 0053 case Qt.Key_Right: 0054 case Qt.Key_Left: 0055 case Qt.Key_Tab: 0056 case Qt.Key_Backtab: 0057 BigScreen.NavigationSoundEffects.playMovingSound(); 0058 break; 0059 default: 0060 break; 0061 } 0062 } 0063 }