summaryrefslogtreecommitdiffstats
path: root/kjsembed/tests/test_customslots.js
blob: 0c1dd05c53078ce4de84e1ae4dd445c034b0d553 (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 QDateTimeEdit(this);
dateTime.connect( dateTime, 'valueChanged(const QDateTime&)', this, 'changed');

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

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

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