Warning, /pim/merkuro/src/contacts/applet/package/contents/ui/ContactListItem.qml is written in an unsupported language. File is not indexed.
0001 /* 0002 * SPDX-FileCopyrightText: 2017-2019 Kaidan Developers and Contributors 0003 * SPDX-FileCopyrightText: 2019 Jonah BrĂ¼chert <jbb@kaidan.im> 0004 * SPDX-FileCopyrightText: 2021 Claudio Cambra <claudio.cambra@gmail.com> 0005 * 0006 * SPDX-License-Identifier: GPL-2.0-only OR GPL-3.0-only OR LicenseRef-KDE-Accepted-GPL 0007 */ 0008 0009 import QtQuick 2.3 0010 import QtQuick.Layouts 1.3 0011 import QtQuick.Controls 2.0 as Controls 0012 0013 import org.kde.kirigami 2.14 as Kirigami 0014 import org.kde.merkuro.contact 1.0 0015 import org.kde.plasma.components 3.0 as PlasmaComponents3 0016 import org.kde.plasma.extras 2.0 as PlasmaExtras 0017 import org.kde.kirigamiaddons.components 1.0 as KirigamiComponents 0018 0019 PlasmaComponents3.ItemDelegate { 0020 id: listItem 0021 0022 property string name 0023 property var avatarIcon 0024 0025 contentItem: RowLayout { 0026 KirigamiComponents.Avatar { 0027 id: avatar 0028 Layout.maximumHeight: parent.height 0029 Layout.maximumWidth: parent.height 0030 source: ContactManager.decorationToUrl(avatarIcon) 0031 name: listItem.name 0032 } 0033 0034 PlasmaExtras.Heading { 0035 text: name 0036 textFormat: Text.PlainText 0037 elide: Text.ElideRight 0038 maximumLineCount: 1 0039 level: 5 0040 Layout.fillWidth: true 0041 } 0042 } 0043 }