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

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

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