Warning, /plasma/plasma-desktop/containments/desktop/package/contents/ui/FolderItemPreviewPluginsDialog.qml is written in an unsupported language. File is not indexed.
0001 /* 0002 SPDX-FileCopyrightText: 2014 Eike Hein <hein@kde.org> 0003 0004 SPDX-License-Identifier: GPL-2.0-or-later 0005 */ 0006 0007 import QtQuick 2.15 0008 import QtQuick.Controls 2.15 0009 import QtQuick.Layouts 1.15 0010 0011 import org.kde.private.desktopcontainment.folder 0.1 as Folder 0012 import org.kde.kirigami 2.20 as Kirigami 0013 0014 Kirigami.OverlaySheet { 0015 id: dialog 0016 0017 required property var previewPlugins 0018 0019 title: i18n("Preview Plugins") 0020 0021 onClosed: destroy() 0022 0023 footer: DialogButtonBox { 0024 standardButtons: DialogButtonBox.Ok | DialogButtonBox.Cancel 0025 onAccepted: { 0026 configIcons.cfg_previewPlugins = previewPluginsModel.checkedPlugins; 0027 dialog.close(); 0028 } 0029 onRejected: dialog.close(); 0030 } 0031 0032 ListView { 0033 implicitWidth: Kirigami.Units.gridUnit * 15 0034 0035 model: Folder.PreviewPluginsModel { 0036 id: previewPluginsModel 0037 } 0038 0039 delegate: CheckDelegate { 0040 width: ListView.view.width 0041 text: model.display 0042 0043 checked: model.checked 0044 onToggled: model.checked = checked; 0045 } 0046 } 0047 0048 Component.onCompleted: { 0049 previewPluginsModel.checkedPlugins = dialog.previewPlugins; 0050 open(); 0051 } 0052 }