summaryrefslogtreecommitdiffstats
path: root/examples/script/helloscript/helloscript.js
diff options
context:
space:
mode:
authorKent Hansen <kent.hansen@nokia.com>2009-11-26 10:34:44 (GMT)
committerKent Hansen <kent.hansen@nokia.com>2009-11-26 10:34:44 (GMT)
commit1d55c88b66013f86be9c7ef069f0f8cdb598d1e2 (patch)
tree11e0f61253828ac98d066ecf0c11674e02cfe99f /examples/script/helloscript/helloscript.js
parent8ed2b99ab836f6adaf64f4ee76205cdde7c0508a (diff)
downloadQt-1d55c88b66013f86be9c7ef069f0f8cdb598d1e2.zip
Qt-1d55c88b66013f86be9c7ef069f0f8cdb598d1e2.tar.gz
Qt-1d55c88b66013f86be9c7ef069f0f8cdb598d1e2.tar.bz2
rename .qs files to .js
QtScript _is_ JavaScript, there's no need to use a custom extension. Most of the other examples were already using .js, but there were two files that still had the .qs extension. Agreed with Simon. Reviewed-by: TrustMe
Diffstat (limited to 'examples/script/helloscript/helloscript.js')
-rw-r--r--examples/script/helloscript/helloscript.js5
1 files changed, 5 insertions, 0 deletions
diff --git a/examples/script/helloscript/helloscript.js b/examples/script/helloscript/helloscript.js
new file mode 100644
index 0000000..6d8e87c
--- /dev/null
+++ b/examples/script/helloscript/helloscript.js
@@ -0,0 +1,5 @@
+//! [0]
+button.text = qsTr('Hello World!');
+button.styleSheet = 'font-style: italic';
+button.show();
+//! [0]