aboutsummaryrefslogtreecommitdiffstats
path: root/sources/pyside2/tests
diff options
context:
space:
mode:
authorFriedemann Kleint <Friedemann.Kleint@qt.io>2018-06-25 15:24:11 +0200
committerFriedemann Kleint <Friedemann.Kleint@qt.io>2018-06-25 14:22:59 +0000
commit4d858949958e48fdffa136688f1eb82f85439404 (patch)
tree73a211458c40ac3c6c1dca629de8c7475b2191f4 /sources/pyside2/tests
parentd30a4247a5253cdbd2b7f34d4fd0ac648850fbf1 (diff)
Fix index() method of QAbstractItemModel-derived classes
Prepend virtual methods when creating function groups so that overriding method the most-derived class is seen first. Task-number: PYSIDE-570 Change-Id: I791e3da09783c4c31ac293060aed8bb2bc8472d5 Reviewed-by: Christian Tismer <tismer@stackless.com>
Diffstat (limited to 'sources/pyside2/tests')
-rw-r--r--sources/pyside2/tests/QtWidgets/bug_668.py2
1 files changed, 2 insertions, 0 deletions
diff --git a/sources/pyside2/tests/QtWidgets/bug_668.py b/sources/pyside2/tests/QtWidgets/bug_668.py
index 27c73c660..05cffa39d 100644
--- a/sources/pyside2/tests/QtWidgets/bug_668.py
+++ b/sources/pyside2/tests/QtWidgets/bug_668.py
@@ -42,6 +42,8 @@ class A(QMainWindow):
v = QTreeView(self)
v.setModel(a)
self.setCentralWidget(v)
+ # Test index() method (see PYSIDE-570, PYSIDE-331)
+ index = a.index(0, 0, QModelIndex())
app = QApplication([])
m = A()