aboutsummaryrefslogtreecommitdiffstats
path: root/tests/auto/qml/qqmlecmascript/data/methodTypeMismatch.qml
blob: fdf5f4ea114bf1b6796aa6c2f407eab9a3086a8c (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
import QtQuick 2.0

Item {
    id: self
    property font myFont
    property int notMyFont

    property var object

    function callWithFont() {
        object.method_gadget(myFont) // should be fine
    }
    function callWithInt() {
        object.method_gadget(123)
    }
    function callWithInt2() {
        object.method_gadget(notMyFont)
    }
    function callWithNull() {
        object.method_gadget(null)
    }
    function callWithAllowedNull() {
        object.method_qobject(null)
    }
}