summaryrefslogtreecommitdiffstats
path: root/tools/activeqt/testcon/scripts/javascript.js
diff options
context:
space:
mode:
authorAlexis Menard <alexis.menard@nokia.com>2009-04-17 10:40:52 (GMT)
committerAlexis Menard <alexis.menard@nokia.com>2009-04-17 10:40:52 (GMT)
commitbb2e4df9bee3148e819c98410aa36e22dad95d7a (patch)
treea6e6e8c070a72378d4b2e5f39ad3cc9c368b61ab /tools/activeqt/testcon/scripts/javascript.js
downloadQt-bb2e4df9bee3148e819c98410aa36e22dad95d7a.zip
Qt-bb2e4df9bee3148e819c98410aa36e22dad95d7a.tar.gz
Qt-bb2e4df9bee3148e819c98410aa36e22dad95d7a.tar.bz2
Initial import of kinetic-animations branch from the old kinetic
repository to the new repository
Diffstat (limited to 'tools/activeqt/testcon/scripts/javascript.js')
-rw-r--r--tools/activeqt/testcon/scripts/javascript.js25
1 files changed, 25 insertions, 0 deletions
diff --git a/tools/activeqt/testcon/scripts/javascript.js b/tools/activeqt/testcon/scripts/javascript.js
new file mode 100644
index 0000000..e2bd54b
--- /dev/null
+++ b/tools/activeqt/testcon/scripts/javascript.js
@@ -0,0 +1,25 @@
+function QAxWidget2::Click()
+{
+ QAxWidget2.lineWidth++;
+ MainWindow.logMacro(0, "Hello from JavaScript: QAxWidget2::Click", 0, "");
+}
+
+function fatLines()
+{
+ QAxWidget2.lineWidth = 25;
+}
+
+function thinLines()
+{
+ QAxWidget2.lineWidth = 1;
+}
+
+function setLineWidth(width)
+{
+ QAxWidget2.lineWidth = width;
+}
+
+function getLineWidth()
+{
+ return(QAxWidget2.lineWidth)
+}