Warning, /plasma/plasma-workspace/applets/digital-clock/package/contents/config/config.qml is written in an unsupported language. File is not indexed.
0001 /*
0002 SPDX-FileCopyrightText: 2013 Bhushan Shah <bhush94@gmail.com>
0003 SPDX-FileCopyrightText: 2015 Martin Klapetek <mklapetek@kde.org>
0004
0005 SPDX-License-Identifier: GPL-2.0-only OR GPL-3.0-only OR LicenseRef-KDE-Accepted-GPL
0006 */
0007
0008 import QtQuick 2.0
0009 import QtQml 2.2
0010
0011 import org.kde.plasma.plasmoid 2.0
0012 import org.kde.plasma.configuration 2.0
0013 import org.kde.plasma.workspace.calendar 2.0 as PlasmaCalendar
0014
0015 ConfigModel {
0016 id: configModel
0017
0018 ConfigCategory {
0019 name: i18n("Appearance")
0020 icon: "preferences-desktop-color"
0021 source: "configAppearance.qml"
0022 }
0023 ConfigCategory {
0024 name: i18n("Calendar")
0025 icon: "office-calendar"
0026 source: "configCalendar.qml"
0027 }
0028 ConfigCategory {
0029 name: i18n("Time Zones")
0030 icon: "preferences-system-time"
0031 source: "configTimeZones.qml"
0032 includeMargins: false
0033 }
0034
0035 property QtObject eventPluginsManager: PlasmaCalendar.EventPluginsManager {
0036 Component.onCompleted: {
0037 populateEnabledPluginsList(Plasmoid.configuration.enabledCalendarPlugins);
0038 }
0039 }
0040
0041 property Instantiator __eventPlugins: Instantiator {
0042 model: eventPluginsManager.model
0043 delegate: ConfigCategory {
0044 name: model.display
0045 icon: model.decoration
0046 source: model.configUi
0047 includeMargins: false
0048 visible: Plasmoid.configuration.enabledCalendarPlugins.indexOf(model.pluginId) > -1
0049 }
0050
0051 onObjectAdded: (index, object) => configModel.appendCategory(object)
0052 onObjectRemoved: (index, object) => configModel.removeCategory(object)
0053 }
0054 }