mirror of
https://gitgud.io/wackyideas/aerothemeplasma.git
synced 2024-08-15 00:43:43 +00:00
Very early KDE 6 release.
This commit is contained in:
parent
7cc4ccabbc
commit
686046d4f7
6272 changed files with 140920 additions and 529657 deletions
|
@ -0,0 +1,52 @@
|
|||
/*
|
||||
SPDX-FileCopyrightText: 2014 Eike Hein <hein@kde.org>
|
||||
|
||||
SPDX-License-Identifier: GPL-2.0-or-later
|
||||
*/
|
||||
|
||||
import QtQuick 2.15
|
||||
import QtQuick.Controls 2.15
|
||||
import QtQuick.Layouts 1.15
|
||||
|
||||
import org.kde.private.desktopcontainment.folder 0.1 as Folder
|
||||
import org.kde.kirigami 2.20 as Kirigami
|
||||
|
||||
Kirigami.OverlaySheet {
|
||||
id: dialog
|
||||
|
||||
required property var previewPlugins
|
||||
|
||||
title: i18n("Preview Plugins")
|
||||
|
||||
onClosed: destroy()
|
||||
|
||||
footer: DialogButtonBox {
|
||||
standardButtons: DialogButtonBox.Ok | DialogButtonBox.Cancel
|
||||
onAccepted: {
|
||||
configIcons.cfg_previewPlugins = previewPluginsModel.checkedPlugins;
|
||||
dialog.close();
|
||||
}
|
||||
onRejected: dialog.close();
|
||||
}
|
||||
|
||||
ListView {
|
||||
implicitWidth: Kirigami.Units.iconSizes.small * 15
|
||||
|
||||
model: Folder.PreviewPluginsModel {
|
||||
id: previewPluginsModel
|
||||
}
|
||||
|
||||
delegate: CheckDelegate {
|
||||
width: ListView.view.width
|
||||
text: model.display
|
||||
|
||||
checked: model.checked
|
||||
onToggled: model.checked = checked;
|
||||
}
|
||||
}
|
||||
|
||||
Component.onCompleted: {
|
||||
previewPluginsModel.checkedPlugins = dialog.previewPlugins;
|
||||
open();
|
||||
}
|
||||
}
|
Loading…
Add table
Add a link
Reference in a new issue