summaryrefslogtreecommitdiffstats
path: root/kjsembed/tests/test_qtimeedit2.js
blob: c69e24c36cd4f81f8926ec8be5ba5db1fc2d0a20 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
var vbox=new TQVBox();
var te=new TQTimeEdit(vbox);
var okButton=new TQToolButton(vbox);
okButton.text="Ok";

function TimeChanged(q) {
    alert("Time Changed: " +q);
}

vbox.connect(te, "valueChanged(const TQTime&)", this, "TimeChanged");
vbox.connect(okButton, "clicked()", this, "exit");
vbox.show();
application.exec();