summaryrefslogtreecommitdiffstats
path: root/kjsembed/tests/test_customslots.js
blob: 9500a4d20f7f7b44015f643de32ab7a3e7d42713 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
#!/usr/bin/env kjscmd

var dateTime = new TQDateTimeEdit(this);
dateTime.connect( dateTime, 'valueChanged(const TQDateTime&)', this, 'changed');

var jsDate = new Date();
dateTime.setDateTime( jsDate );

dateTime.show();
application.exec();

function changed( time )
{
	println( time.toString() );
	println( jsDate.toString() );
}