Changeset View
Changeset View
Standalone View
Standalone View
applets/systemmonitor/common/contents/ui/ConfigGeneral.qml
Context not available. | |||||
31 | implicitHeight: mainColumn.implicitHeight | 31 | implicitHeight: mainColumn.implicitHeight | ||
---|---|---|---|---|---|
32 | 32 | | |||
33 | property var cfg_sources: [] | 33 | property var cfg_sources: [] | ||
34 | onCfg_sourcesChanged: { | 34 | | ||
35 | function sourcesChanged() { | ||||
35 | if (! cfg_sources) { cfg_sources = [] } | 36 | if (! cfg_sources) { cfg_sources = [] } | ||
36 | if (cfg_sources.length == 0) { | 37 | if (cfg_sources.length == 0) { | ||
37 | for (var i in mainColumn.children) { | 38 | for (var i in mainColumn.children) { | ||
Context not available. | |||||
49 | } | 50 | } | ||
50 | } | 51 | } | ||
51 | } | 52 | } | ||
53 | | ||||
54 | onCfg_sourcesChanged: { | ||||
55 | sourcesChanged(); | ||||
56 | } | ||||
57 | | ||||
52 | property int cfg_updateInterval | 58 | property int cfg_updateInterval | ||
53 | 59 | | |||
54 | signal sourceAdded(string source) | 60 | signal sourceAdded(string source) | ||
Context not available. | |||||
94 | var source = smSource.sources[i]; | 100 | var source = smSource.sources[i]; | ||
95 | iconsPage.sourceAdded(source); | 101 | iconsPage.sourceAdded(source); | ||
96 | } | 102 | } | ||
103 | sourcesChanged(); | ||||
97 | } | 104 | } | ||
98 | 105 | | |||
99 | ListModel { | 106 | ListModel { | ||
Context not available. |