Warning, /plasma-bigscreen/mycroft-skill-installer/app/qml/delegates/ListDelegate.qml is written in an unsupported language. File is not indexed.
0001 /* 0002 * SPDX-FileCopyrightText: 2019-2020 Aditya Mehra <aix.m@outlook.org> 0003 * SPDX-FileCopyrightText: 2019-2020 Marco Martin <mart@kde.org> 0004 * 0005 * SPDX-License-Identifier: GPL-3.0-or-later OR LicenseRef-KDE-Accepted-GPL 0006 */ 0007 0008 import QtQuick 2.9 0009 import QtQuick.Layouts 1.3 0010 import QtQuick.Controls 2.3 0011 import org.kde.plasma.core 2.0 as PlasmaCore 0012 import org.kde.plasma.components 3.0 as PlasmaComponents 0013 import org.kde.kirigami 2.11 as Kirigami 0014 0015 Kirigami.AbstractListItem { 0016 background: Rectangle { 0017 color: Kirigami.Theme.backgroundColor 0018 } 0019 0020 function listProperty(item) 0021 { 0022 for (var p in item) 0023 console.log(p + ": " + item[p]); 0024 } 0025 0026 contentItem: RowLayout { 0027 anchors.fill: parent 0028 0029 Kirigami.Icon { 0030 Layout.preferredHeight: Kirigami.Units.iconSizes.small 0031 Layout.preferredWidth: Kirigami.Units.iconSizes.small 0032 source: "choice-round" 0033 } 0034 0035 Kirigami.Heading { 0036 id: exLabel 0037 wrapMode: Text.WordWrap 0038 Layout.fillWidth: true 0039 Layout.fillHeight: true 0040 level: 3 0041 maximumLineCount: 1 0042 elide: Text.ElideRight 0043 color: PlasmaCore.ColorScope.textColor 0044 font.capitalization: Font.Capitalize 0045 text: modelData 0046 } 0047 } 0048 }