summaryrefslogtreecommitdiffstats
path: root/kjsembed/tests/test_customslots.js
diff options
context:
space:
mode:
Diffstat (limited to 'kjsembed/tests/test_customslots.js')
-rw-r--r--kjsembed/tests/test_customslots.js17
1 files changed, 17 insertions, 0 deletions
diff --git a/kjsembed/tests/test_customslots.js b/kjsembed/tests/test_customslots.js
new file mode 100644
index 00000000..0c1dd05c
--- /dev/null
+++ b/kjsembed/tests/test_customslots.js
@@ -0,0 +1,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() );
+}
+