Make qsTr work in global scope
authorKent Hansen <kent.hansen@nokia.com>
Mon, 12 Apr 2010 14:55:37 +0000 (16:55 +0200)
committerKent Hansen <kent.hansen@nokia.com>
Tue, 13 Apr 2010 13:24:40 +0000 (15:24 +0200)
commit058ba4d19b296464f87504bdc2a2076ee1368e57
treedf97586ad78a8402e25672eb5d187b1223160a44
parent70141f27e6151f7d7e635ef4ac99fb1f38a1f881
Make qsTr work in global scope

Search up the call stack to find the first non-empty source URL.

Also and add an autotest for the QtScript translator functions
since there was none (their presence was checked, but not their
behavior...).

Task-number: QTBUG-9775
Reviewed-by: Olivier Goffart
src/script/api/qscriptengine.cpp
tests/auto/qscriptengine/qscriptengine.pro
tests/auto/qscriptengine/qscriptengine.qrc [new file with mode: 0644]
tests/auto/qscriptengine/translatable.js [new file with mode: 0644]
tests/auto/qscriptengine/translations/translatable_la.qm [new file with mode: 0644]
tests/auto/qscriptengine/translations/translatable_la.ts [new file with mode: 0644]
tests/auto/qscriptengine/tst_qscriptengine.cpp