diff options
author | Kent Hansen <kent.hansen@nokia.com> | 2009-11-26 10:34:44 (GMT) |
---|---|---|
committer | Kent Hansen <kent.hansen@nokia.com> | 2009-11-26 10:34:44 (GMT) |
commit | 1d55c88b66013f86be9c7ef069f0f8cdb598d1e2 (patch) | |
tree | 11e0f61253828ac98d066ecf0c11674e02cfe99f /examples/script | |
parent | 8ed2b99ab836f6adaf64f4ee76205cdde7c0508a (diff) | |
download | Qt-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')
-rw-r--r-- | examples/script/helloscript/helloscript.js (renamed from examples/script/helloscript/helloscript.qs) | 0 | ||||
-rw-r--r-- | examples/script/helloscript/helloscript.qrc | 2 | ||||
-rw-r--r-- | examples/script/helloscript/main.cpp | 2 | ||||
-rw-r--r-- | examples/script/qsdbg/example.js (renamed from examples/script/qsdbg/example.qs) | 0 | ||||
-rw-r--r-- | examples/script/qsdbg/main.cpp | 2 |
5 files changed, 3 insertions, 3 deletions
diff --git a/examples/script/helloscript/helloscript.qs b/examples/script/helloscript/helloscript.js index 6d8e87c..6d8e87c 100644 --- a/examples/script/helloscript/helloscript.qs +++ b/examples/script/helloscript/helloscript.js diff --git a/examples/script/helloscript/helloscript.qrc b/examples/script/helloscript/helloscript.qrc index dc93461..c52fa15 100644 --- a/examples/script/helloscript/helloscript.qrc +++ b/examples/script/helloscript/helloscript.qrc @@ -1,5 +1,5 @@ <RCC> <qresource prefix="/" > - <file>helloscript.qs</file> + <file>helloscript.js</file> </qresource> </RCC> diff --git a/examples/script/helloscript/main.cpp b/examples/script/helloscript/main.cpp index bc9a65e..55d63bf 100644 --- a/examples/script/helloscript/main.cpp +++ b/examples/script/helloscript/main.cpp @@ -68,7 +68,7 @@ int main(int argc, char *argv[]) //! [2] //! [3] - QString fileName(":/helloscript.qs"); + QString fileName(":/helloscript.js"); QFile scriptFile(fileName); scriptFile.open(QIODevice::ReadOnly); QTextStream stream(&scriptFile); diff --git a/examples/script/qsdbg/example.qs b/examples/script/qsdbg/example.js index 47c1363..47c1363 100644 --- a/examples/script/qsdbg/example.qs +++ b/examples/script/qsdbg/example.js diff --git a/examples/script/qsdbg/main.cpp b/examples/script/qsdbg/main.cpp index 526de0c..fdcc7cb 100644 --- a/examples/script/qsdbg/main.cpp +++ b/examples/script/qsdbg/main.cpp @@ -46,7 +46,7 @@ int main(int argc, char **argv) { if (argc < 2) { - fprintf(stderr, "*** you must specify a script file to evaluate (try example.qs)\n"); + fprintf(stderr, "*** you must specify a script file to evaluate (try example.js)\n"); return(-1); } |