Warning, /pim/merkuro/src/contacts/qml/private/ContactsPage.qml is written in an unsupported language. File is not indexed.
0001 /* 0002 * SPDX-FileCopyrightText: 2015 Martin Klapetek <mklapetek@kde.org> 0003 * SPDX-FileCopyrightText: 2019 Linus Jahn <lnj@kaidan.im> 0004 * SPDX-FileCopyrightText: 2019 Jonah BrĂ¼chert <jbb@kaidan.im> 0005 * SPDX-FileCopyrightText: 2021 Claudio Cambra <claudio.cambra@gmail.com> 0006 * 0007 * SPDX-License-Identifier: GPL-2.0-only OR GPL-3.0-only OR LicenseRef-KDE-Accepted-GPL 0008 */ 0009 0010 import QtQuick 2.15 0011 import QtQuick.Controls 2.15 as Controls 0012 import QtQuick.Layouts 1.15 0013 0014 import org.kde.kirigami 2.12 as Kirigami 0015 import org.kde.merkuro.contact 1.0 0016 0017 Kirigami.ScrollablePage { 0018 id: root 0019 0020 title: i18n("Contacts") 0021 0022 property var attendeeAkonadiIds 0023 property alias contactDelegate: contactsList.delegate 0024 0025 header: Controls.Control { 0026 contentItem: Kirigami.SearchField { 0027 id: searchField 0028 onTextChanged: root.model.setFilterFixedString(text) 0029 } 0030 } 0031 property alias model: contactsList.model 0032 0033 ListView { 0034 id: contactsList 0035 0036 reuseItems: true 0037 0038 section.property: "display" 0039 section.criteria: ViewSection.FirstCharacter 0040 section.delegate: Kirigami.ListSectionHeader {text: section} 0041 clip: true 0042 model: ContactsModel {} 0043 0044 Kirigami.PlaceholderMessage { 0045 anchors.centerIn: parent 0046 text: i18n("No contacts") 0047 visible: contactsList.count === 0 0048 } 0049 } 0050 }