aboutsummaryrefslogtreecommitdiffstats
path: root/tests/auto/qml/qmlcppcodegen/data/numbersInJsPrimitive.qml
blob: f12d3f5ea22c2554536475f3601bb2230295abd7 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
pragma Strict
import QtQml
import TestTypes

QtObject {
    function writeValues() {
        Druggeljug.myInt = 39
        Druggeljug.myUint = 40
        Druggeljug.myInt32 = 41
        Druggeljug.myUint32 = 42
    }

    function readValueAsString(i: int) : string {
        switch (i) {
            case 0: return Druggeljug.myInt;
            case 1: return Druggeljug.myUint;
            case 2: return Druggeljug.myInt32;
            case 3: return Druggeljug.myUint32;
            default: return "";
        }
    }

    function storeValues() {
        Druggeljug.storeMyInt(1334)
        Druggeljug.storeMyUint(1335)
        Druggeljug.storeMyInt32(1336)
        Druggeljug.storeMyUint32(1337)
    }
}