plasma-framework/scriptengines/javascript/tests/javascript-config-test/contents/code/main.js
Aaron J. Seigo 2617a0b82d test config ui handling
svn path=/trunk/KDE/kdebase/runtime/; revision=973262
2009-05-26 18:02:32 +00:00

14 lines
372 B
JavaScript

plasmoid.configChanged = function()
{
plasmoid.activeConfig = "main";
print("Configuration changed: " + plasmoid.readConfig("Test"));
}
print(plasmoid.readConfig("Test"));
plasmoid.activeConfig = "secondary";
print(plasmoid.activeConfig);
print(plasmoid.readConfig("Test"));
plasmoid.writeConfig("Test", "A different text!");
print(plasmoid.readConfig("Test"));