tests/auto/declarative/qdeclarativeecmascript/data/functionAssignment.2.qml
changeset 30 5dc02b23752f
equal deleted inserted replaced
29:b72c6db6890b 30:5dc02b23752f
       
     1 import Qt.test 1.0
       
     2 
       
     3 MyQmlObject {
       
     4     property variant a
       
     5     property bool runTest: false
       
     6     onRunTestChanged: {
       
     7         function myFunction() {
       
     8             console.log("hello world");
       
     9         }
       
    10         a = myFunction;
       
    11     }
       
    12 
       
    13 }