summaryrefslogtreecommitdiffstats
path: root/doc/src/snippets/declarative/codingconventions/javascript-imports.qml
blob: 417366c6945f04ca7da5aa75e21744a5b68e12cc (plain)
1
2
3
4
5
6
7
import Qt 4.7

//![0]
import "myscript.js" as Script

Rectangle { color: "blue"; width: Script.calculateWidth(parent) }
//![0]