blob: c0bb730ac741f92a750b194e8babe70cb0c48441 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
|
import org.qtproject.PureJsModule 1.0 as PJM
import org.qtproject.PureJsModule 1.0 as AnotherName
import QtQuick 2.0
Item {
property bool test: false
Component.onCompleted: {
test = ((PJM.FirstAPI.greeting() == "Hello") &&
(PJM.FirstAPI.major == 1) &&
(PJM.FirstAPI.minor == 0) &&
(AnotherName.FirstAPI.greeting() == "Hello") &&
(AnotherName.FirstAPI.major == 1) &&
(AnotherName.FirstAPI.minor == 0))
}
}
|