diff options
author | Cristian Maureira-Fredes <cristian.maureira-fredes@qt.io> | 2018-06-22 12:48:41 +0200 |
---|---|---|
committer | Cristian Maureira-Fredes <cristian.maureira-fredes@qt.io> | 2018-06-22 12:20:10 +0000 |
commit | 1e496adf01898c293f924f0d0226554dbde74380 (patch) | |
tree | fefcfce450b538847a614aa635505a4a6a2673ad | |
parent | 2ef2110e0e17f827273a00f32c579e133ae3b9c2 (diff) |
Fix QtQml/bug_814.py
Since roleNames() expects a QByteArray
we should pass the roleName as bytes,
not a Python string.
Task-number: PYSIDE-722
Change-Id: I67bf78503cd1e6acf43aab3531bf3b184e9a9159
Reviewed-by: Alexandru Croitor <alexandru.croitor@qt.io>
-rwxr-xr-x | sources/pyside2/tests/QtQml/bug_814.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/sources/pyside2/tests/QtQml/bug_814.py b/sources/pyside2/tests/QtQml/bug_814.py index a03431b50..31eada2df 100755 --- a/sources/pyside2/tests/QtQml/bug_814.py +++ b/sources/pyside2/tests/QtQml/bug_814.py @@ -49,7 +49,7 @@ class ListModel(QAbstractListModel): QAbstractListModel.__init__(self) def roleNames(self): - return { Qt.DisplayRole: 'pysideModelData' } + return { Qt.DisplayRole: b'pysideModelData' } def rowCount(self, parent = QModelIndex()): return 3 |