summaryrefslogtreecommitdiffstats
path: root/tests/QtDeclarative/bug_1113.qml
diff options
context:
space:
mode:
authorPaulo Alcantara <pcacjr@gmail.com>2012-01-18 14:23:29 -0300
committerPaulo Alcantara <pcacjr@gmail.com>2012-01-18 18:36:46 -0300
commit3aba7ebbf7ae05804d96dc1db9edad3926c89ee5 (patch)
treeb2b8eb6864d8433ef6b060c24e8b077db8ce23ae /tests/QtDeclarative/bug_1113.qml
parenta50e42645e01662db3875e5872e84ca80ed84464 (diff)
downloadpyside-3aba7ebbf7ae05804d96dc1db9edad3926c89ee5.tar.gz
pyside-3aba7ebbf7ae05804d96dc1db9edad3926c89ee5.tar.xz
pyside-3aba7ebbf7ae05804d96dc1db9edad3926c89ee5.zip
Fix BUG #1113 - "Instantiating QObject in user-defined QML element's
constructor crashes if instantiated from QML" Signed-off-by: Paulo Alcantara <pcacjr@gmail.com> Reviewed-by: Marcelo Lira <marcelo.lira@openbossa.org> Reviewed-by: Hugo Parente Lima <hugo.pl@gmail.com>
Diffstat (limited to 'tests/QtDeclarative/bug_1113.qml')
-rw-r--r--tests/QtDeclarative/bug_1113.qml17
1 files changed, 17 insertions, 0 deletions
diff --git a/tests/QtDeclarative/bug_1113.qml b/tests/QtDeclarative/bug_1113.qml
new file mode 100644
index 0000000..0283006
--- /dev/null
+++ b/tests/QtDeclarative/bug_1113.qml
@@ -0,0 +1,17 @@
+import QtQuick 1.1
+import Test 1.0
+
+ListView {
+ width: 400; height: 240;
+
+ model: TestModel {
+ }
+
+ delegate: Item {
+ height: 32
+ width: parent.width
+ Text {
+ text: model.display
+ }
+ }
+}