plasma-framework/scriptengines/javascript/tests/script-digital-clock/contents/code/main.js
Aaron J. Seigo e0e01efa94 qtscript->javascript
svn path=/trunk/KDE/kdebase/workspace/plasma/scriptengines/javascript/; revision=905822
2009-01-05 08:08:38 +00:00

17 lines
357 B
JavaScript

layout = new QGraphicsLinearLayout(Horizontal, plasmoid);
label = new Label();
plasmoid.dataEngine("time").connectSource("UTC", plasmoid, 500);
print(dataEngine("time").query("UTC").toString());
layout.addItem(label);
label.text = "test clock";
plasmoid.setLayout(layout);
plasmoid.dataUpdated = function(a, b)
{
print("This should print time");
}