update the test so others can enjoy it too
svn path=/trunk/KDE/kdebase/workspace/plasma/scriptengines/javascript/; revision=905894
This commit is contained in:
parent
bd0da5302b
commit
a1549299d7
@ -1,16 +1,12 @@
|
|||||||
layout = new QGraphicsLinearLayout(Horizontal, plasmoid);
|
plasmoid.dataUpdate = function(a, b)
|
||||||
|
|
||||||
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");
|
label.text = "It is " + b.Time.toString() + " in " + a;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
layout = new LinearLayout(plasmoid);
|
||||||
|
label = new Label();
|
||||||
|
layout.addItem(label);
|
||||||
|
|
||||||
|
print(dataEngine("time").query("UTC").Time.toString());
|
||||||
|
plasmoid.dataEngine("time").connectSource("UTC", plasmoid, 500);
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user