Fix: InvisibleRootItem is no longer a subclass of QTreeWidgetItem

The __getattr__ method is supposed to wrap attributes from the internal TreeWidgetItem,
but this was broken because the superclass had already implemented these.
This commit is contained in:
Luke Campagnola 2017-10-05 10:46:39 -07:00
parent 4880b5849b
commit 8a882b516a

View File

@ -350,7 +350,7 @@ class TreeWidgetItem(QtGui.QTreeWidgetItem):
"""
class InvisibleRootItem(QtGui.QTreeWidgetItem):
class InvisibleRootItem(object):
"""Wrapper around a TreeWidget's invisible root item that calls
TreeWidget.informTreeWidgetChange when child items are added/removed.
"""