diff options
author | Aaron Kennedy <aaron.kennedy@nokia.com> | 2010-08-31 07:56:11 (GMT) |
---|---|---|
committer | Aaron Kennedy <aaron.kennedy@nokia.com> | 2010-08-31 07:56:11 (GMT) |
commit | 07095fe95200112ba14bf728148d03f579940c28 (patch) | |
tree | 47f320950ed6b9cf6a50450a847beb16b0d97ae7 /tests/auto/declarative/qdeclarativeecmascript/data/deleteLater.qml | |
parent | 868ec6b758ad37ac7c977264561ce3052e39685d (diff) | |
download | Qt-07095fe95200112ba14bf728148d03f579940c28.zip Qt-07095fe95200112ba14bf728148d03f579940c28.tar.gz Qt-07095fe95200112ba14bf728148d03f579940c28.tar.bz2 |
Prevent calling deleteLater() from QML
QTBUG-13045
Diffstat (limited to 'tests/auto/declarative/qdeclarativeecmascript/data/deleteLater.qml')
-rw-r--r-- | tests/auto/declarative/qdeclarativeecmascript/data/deleteLater.qml | 14 |
1 files changed, 14 insertions, 0 deletions
diff --git a/tests/auto/declarative/qdeclarativeecmascript/data/deleteLater.qml b/tests/auto/declarative/qdeclarativeecmascript/data/deleteLater.qml new file mode 100644 index 0000000..6d23e5f7 --- /dev/null +++ b/tests/auto/declarative/qdeclarativeecmascript/data/deleteLater.qml @@ -0,0 +1,14 @@ +import Qt 4.7 + +QtObject { + id: root + property bool test: false + + Component.onCompleted: { + try { + root.deleteLater() + } catch(e) { + test = true; + } + } +} |