diff options
author | Chris Adams <christopher.adams@nokia.com> | 2012-07-25 11:03:35 +1000 |
---|---|---|
committer | Qt by Nokia <qt-info@nokia.com> | 2012-08-16 06:42:33 +0200 |
commit | 4317c442fd492121e2fc037a39b40653bbc34294 (patch) | |
tree | a3774e09b4f7184316b445886486a6eb77346245 /tests/auto/qml/qqmllanguage/data/overrideSignal.6.qml | |
parent | ee0a9ce6518f4423dec83102293dcc5b9c0d4c7f (diff) |
Fix crash in signal change notification override
Manual overrides of automatically generated property change
notification signals can cause crashes. They also don't work
properly in the situations where they don't crash. This patch
ensures that it is now a compile error to attempt to override a
signal with a manual signal or slot.
Note that this includes signals defined in superclasses.
Task-number: QTBUG-26723
Task-number: QTBUG-26818
Change-Id: I4ecf448ce9de5d97526606126991e280debea2d6
Reviewed-by: Kent Hansen <kent.hansen@nokia.com>
Diffstat (limited to 'tests/auto/qml/qqmllanguage/data/overrideSignal.6.qml')
-rw-r--r-- | tests/auto/qml/qqmllanguage/data/overrideSignal.6.qml | 23 |
1 files changed, 23 insertions, 0 deletions
diff --git a/tests/auto/qml/qqmllanguage/data/overrideSignal.6.qml b/tests/auto/qml/qqmllanguage/data/overrideSignal.6.qml new file mode 100644 index 0000000000..69e56bf7fe --- /dev/null +++ b/tests/auto/qml/qqmllanguage/data/overrideSignal.6.qml @@ -0,0 +1,23 @@ +import QtQuick 2.0 + +OverrideSignalComponent { + signal objectNameChanged // manual signal override of builtin signal, invalid. + + // due to an unrelated bug (QTBUG-26818), a certain + // number of properties are needed to exist before the + // crash condition is hit, currently. + property int a + property int b + property int c + property int d + property int e + property int f + property int g + property int h + property int i + property int j + property int k + property int l + property int m + property int n +} |