File: consoleObject.qml

package info (click to toggle)
qt6-declarative 6.9.2%2Bdfsg-1
  • links: PTS, VCS
  • area: main
  • in suites: experimental
  • size: 310,088 kB
  • sloc: cpp: 779,045; javascript: 514,338; xml: 10,981; python: 2,806; ansic: 2,253; java: 954; sh: 262; makefile: 41; php: 27
file content (42 lines) | stat: -rw-r--r-- 1,048 bytes parent folder | download
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
30
31
32
33
34
35
36
37
38
39
40
41
42
pragma Strict
import QtQml

LoggingCategory {
    id: self
    name: "foobar"

    // tests sequence handling
    function xyz() {
        const d = [1, 2, 3, 4, 5];
        const contained = d.includes(3);
        console.log(d, contained);
    }



    Component.onCompleted: {
        console.debug("b", 4.55);
        console.log("b", 4.55);
        console.info("b", 4.55);
        console.warn("b", 4.55);
        console.error("b", 4.55);
        console.debug(self, "b", 4.55);
        console.log(self, "b", 4.55);
        console.info(self, "b", 4.55);
        console.warn(self, "b", 4.55);
        console.error(self, "b", 4.55);
        console.debug(Component, "b", 4.55);
        console.log(Component, "b", 4.55);
        console.info(Component, "b", 4.55);
        console.warn(Component, "b", 4.55);
        console.error(Component, "b", 4.55);

        console.log("a", undefined, "b", false, null, 7);
        console.log();
        console.log(4)
        console.log(self);
        console.log(Component);

	self.xyz()
    }
}