You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
tdebindings/kjsembed/tests/test_customslots.js

18 lines
332 B

#!/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() );
}