12import org.kde.kirigami as Kirigami
13import org.kde.kquickcontrols
15import org.kde.ksysguard.sensors as Sensors
16import org.kde.ksysguard.faces as Faces
21 property Faces.SensorFaceController controller
23 signal configurationChanged
25 function saveConfig() {
26 if (item.saveConfig) {
29 for (var key in root.controller.faceConfiguration) {
30 if (item.hasOwnProperty("cfg_" + key)) {
31 root.controller.faceConfiguration[key] = item[
"cfg_" + key]
38 if (!item || !root.controller.faceConfiguration) {
42 for (var key in root.controller.faceConfiguration) {
43 if (!item.hasOwnProperty(
"cfg_" + key)) {
47 item[
"cfg_" + key] = root.controller.faceConfiguration[key];
48 var changedSignal = item[
"cfg_" + key +
"Changed"];
50 changedSignal.connect(root.configurationChanged);
This file is part of the KDE documentation.
Documentation copyright © 1996-2024 The KDE developers.
Generated on Mon Nov 18 2024 12:19:45 by
doxygen 1.12.0 written
by
Dimitri van Heesch, © 1997-2006
KDE's Doxygen guidelines are available online.