Changeset View
Changeset View
Standalone View
Standalone View
applets/digital-clock/package/contents/ui/main.qml
Show First 20 Lines • Show All 94 Lines • ▼ Show 20 Line(s) | 87 | Plasmoid.toolTipItem: Loader { | |||
---|---|---|---|---|---|
95 | source: "Tooltip.qml" | 95 | source: "Tooltip.qml" | ||
96 | } | 96 | } | ||
97 | 97 | | |||
98 | //We need Local to be *always* present, even if not disaplayed as | 98 | //We need Local to be *always* present, even if not disaplayed as | ||
99 | //it's used for formatting in ToolTip.dateTimeChanged() | 99 | //it's used for formatting in ToolTip.dateTimeChanged() | ||
100 | property var allTimezones | 100 | property var allTimezones | ||
101 | Connections { | 101 | Connections { | ||
102 | target: plasmoid.configuration | 102 | target: plasmoid.configuration | ||
103 | onSelectedTimeZonesChanged: root.initTimezones(); | 103 | function onSelectedTimeZonesChanged() { root.initTimezones(); } | ||
104 | } | 104 | } | ||
105 | 105 | | |||
106 | PlasmaCore.DataSource { | 106 | PlasmaCore.DataSource { | ||
107 | id: dataSource | 107 | id: dataSource | ||
108 | engine: "time" | 108 | engine: "time" | ||
109 | connectedSources: allTimezones | 109 | connectedSources: allTimezones | ||
110 | interval: plasmoid.configuration.showSeconds ? 1000 : 60000 | 110 | interval: plasmoid.configuration.showSeconds ? 1000 : 60000 | ||
111 | intervalAlignment: plasmoid.configuration.showSeconds ? PlasmaCore.Types.NoAlignment : PlasmaCore.Types.AlignToMinute | 111 | intervalAlignment: plasmoid.configuration.showSeconds ? PlasmaCore.Types.NoAlignment : PlasmaCore.Types.AlignToMinute | ||
Show All 37 Lines |