diff options
Diffstat (limited to 'tests/auto/qml/qmllint/data/goodCppPropertyChangeHandlers.qml')
-rw-r--r-- | tests/auto/qml/qmllint/data/goodCppPropertyChangeHandlers.qml | 26 |
1 files changed, 26 insertions, 0 deletions
diff --git a/tests/auto/qml/qmllint/data/goodCppPropertyChangeHandlers.qml b/tests/auto/qml/qmllint/data/goodCppPropertyChangeHandlers.qml new file mode 100644 index 0000000000..1ec2284c7d --- /dev/null +++ b/tests/auto/qml/qmllint/data/goodCppPropertyChangeHandlers.qml @@ -0,0 +1,26 @@ +import PropertyChangeHandlers 1.0 +import QtQuick +Item { + TypeWithProperties { + onAChanged: { console.log("OK"); } + onBChanged: { console.log("OK"); } + onCChanged: { console.log("OK"); } + onDChanged: { console.log("OK"); } + onEChanged: { console.log("OK"); } + } + + TypeWithProperties { + onCWeirdSignal: { console.log("OK"); } + onDSignal: { console.log("OK"); } + } + + TypeWithProperties { + onCWeirdSignal: function(value) { console.log("OK?", value); } + onDSignal: function(value, str) { console.log("OK?", value, str); } + } + + TypeWithProperties { + onCChanged: function(value) { console.log("OK?", value); } + onDChanged: function(value, str) { console.log("OK?", value, str); } + } +} |