Changeset View
Changeset View
Standalone View
Standalone View
applets/digital-clock/package/contents/ui/main.qml
Show First 20 Lines • Show All 93 Lines • ▼ Show 20 Line(s) | 93 | function action_clockkcm() { | |||
---|---|---|---|---|---|
94 | KCMShell.open("clock"); | 94 | KCMShell.open("clock"); | ||
95 | } | 95 | } | ||
96 | 96 | | |||
97 | function action_formatskcm() { | 97 | function action_formatskcm() { | ||
98 | KCMShell.open("formats"); | 98 | KCMShell.open("formats"); | ||
99 | } | 99 | } | ||
100 | 100 | | |||
101 | Component.onCompleted: { | 101 | Component.onCompleted: { | ||
102 | plasmoid.setAction("clipboard", i18n("Copy to Clipboard"), "edit-copy"); | ||||
103 | ClipboardMenu.setupMenu(plasmoid.action("clipboard")); | ||||
104 | | ||||
102 | root.initTimezones(); | 105 | root.initTimezones(); | ||
103 | if (KCMShell.authorize("clock.desktop").length > 0) { | 106 | if (KCMShell.authorize("clock.desktop").length > 0) { | ||
104 | plasmoid.setAction("clockkcm", i18n("Adjust Date and Time..."), "preferences-system-time"); | 107 | plasmoid.setAction("clockkcm", i18n("Adjust Date and Time..."), "preferences-system-time"); | ||
105 | } | 108 | } | ||
106 | if (KCMShell.authorize("formats.desktop").length > 0) { | 109 | if (KCMShell.authorize("formats.desktop").length > 0) { | ||
107 | plasmoid.setAction("formatskcm", i18n("Set Time Format...")); | 110 | plasmoid.setAction("formatskcm", i18n("Set Time Format...")); | ||
108 | } | 111 | } | ||
109 | 112 | | |||
110 | // Set the list of enabled plugins from config | 113 | // Set the list of enabled plugins from config | ||
111 | // to the manager | 114 | // to the manager | ||
112 | PlasmaCalendar.EventPluginsManager.enabledPlugins = plasmoid.configuration.enabledCalendarPlugins; | 115 | PlasmaCalendar.EventPluginsManager.enabledPlugins = plasmoid.configuration.enabledCalendarPlugins; | ||
113 | } | 116 | } | ||
114 | } | 117 | } |