diff options
author | Alexis Menard <alexis.menard@nokia.com> | 2009-04-17 10:40:52 (GMT) |
---|---|---|
committer | Alexis Menard <alexis.menard@nokia.com> | 2009-04-17 10:40:52 (GMT) |
commit | bb2e4df9bee3148e819c98410aa36e22dad95d7a (patch) | |
tree | a6e6e8c070a72378d4b2e5f39ad3cc9c368b61ab /tools/activeqt/testcon/scripts/javascript.js | |
download | Qt-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.js | 25 |
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) +} |