Warning, /pim/merkuro/src/contacts/applet/package/contents/ui/main.qml is written in an unsupported language. File is not indexed.
0001 // SPDX-FileCopyrightText: 2022 Carl Schwan <car@carlschwan.eu> 0002 // SPDX-License-Identifier: LGPL-2.1-only OR LGPL-3.0-only OR LicenseRef-KDE-Accepted-LGPL 0003 0004 import QtQuick 2.2 0005 import QtQuick.Controls 2.15 as QQC2 0006 import QtQuick.Layouts 1.15 0007 0008 import org.kde.kirigami as Kirigami 0009 import org.kde.plasma.plasmoid 2.0 0010 import org.kde.plasma.core 2.0 as PlasmaCore 0011 import org.kde.plasma.extras 2.0 as PlasmaExtras 0012 import org.kde.merkuro.contact 1.0 0013 0014 Item { 0015 id: contactApplet 0016 0017 Plasmoid.toolTipMainText: i18n("Contact") 0018 Plasmoid.icon: 'im-user' 0019 0020 Plasmoid.switchWidth: Kirigami.Units.gridUnit * 5 0021 Plasmoid.switchHeight: Kirigami.Units.gridUnit * 5 0022 0023 Plasmoid.fullRepresentation: PlasmaExtras.Representation { 0024 Layout.minimumWidth: Kirigami.Units.gridUnit * 5 0025 Layout.minimumHeight: Kirigami.Units.gridUnit * 5 0026 collapseMarginsHint: true 0027 0028 focus: true 0029 0030 header: stack.currentItem.header 0031 0032 property string itemTitle: stack.currentItem.title 0033 onItemTitleChanged: contactApplet.Plasmoid.title = itemTitle ?? i18n("Contact") 0034 0035 property alias listMargins: listItemSvg.margins 0036 0037 PlasmaCore.FrameSvgItem { 0038 id : listItemSvg 0039 imagePath: "widgets/listitem" 0040 prefix: "normal" 0041 visible: false 0042 } 0043 0044 Keys.forwardTo: [stack.currentItem] 0045 0046 QQC2.StackView { 0047 id: stack 0048 anchors.fill: parent 0049 initialItem: ContactsPage {} 0050 } 0051 } 0052 }