diff options
author | Lauro Neto <lauro.neto@openbossa.org> | 2011-04-19 16:37:22 -0300 |
---|---|---|
committer | Hugo Parente Lima <hugo.pl@gmail.com> | 2012-03-08 16:54:13 -0300 |
commit | 055e5e97b6873228c64c5ab4a84b71ce8a2012c4 (patch) | |
tree | a258536df54e1ae33c2aa98461845a0a553fb49d /tests | |
parent | 26be28d120aba5401e8e4ed0509557070729cb82 (diff) |
Fix bug 814 test.
Using the modelData property name was causing problems
with a debug-build Qt.
Reviewer: Renato Araujo <renato.araujo@openbossa.org>
Reviewer: Hugo Lima <hugo.lima@openbossa.org>
Diffstat (limited to 'tests')
-rw-r--r-- | tests/QtDeclarative/bug_814.py | 2 | ||||
-rw-r--r-- | tests/QtDeclarative/bug_814.qml | 2 |
2 files changed, 2 insertions, 2 deletions
diff --git a/tests/QtDeclarative/bug_814.py b/tests/QtDeclarative/bug_814.py index 43fcc5f61..e2bfc36b5 100644 --- a/tests/QtDeclarative/bug_814.py +++ b/tests/QtDeclarative/bug_814.py @@ -15,7 +15,7 @@ import unittest class ListModel(QAbstractListModel): def __init__(self): QAbstractListModel.__init__(self) - self.setRoleNames({0: 'modelData'}) + self.setRoleNames({0: 'pysideModelData'}) def rowCount(self, parent=QModelIndex()): return 3 diff --git a/tests/QtDeclarative/bug_814.qml b/tests/QtDeclarative/bug_814.qml index f772c3a84..3296c0799 100644 --- a/tests/QtDeclarative/bug_814.qml +++ b/tests/QtDeclarative/bug_814.qml @@ -3,7 +3,7 @@ import Qt 4.7 ListView { width: 300; height: 300 - delegate: Text { text: modelData } + delegate: Text { text: pysideModelData } model: 3 } |