On 19.02.08 09:47:50, Dirk Wagener wrote: > Hi > > Can I use ModelTest to test custom implementations of QAbstractTableModel ? > If I use ModelTest as is, it breaks when it tries to access some of the > QAbstractTableModel private > methods: > > File "Y:\tests\modeltest.py", line 81, in nonDestructiveBasicTest > self.model.hasChildren(QtCore.QModelIndex()) > AttributeError: QAbstractTableModel.hasChildren is a private method > > How do I need to change ModelTest to ensure that it still tests the > model/view design > contract?
Simply remove all tests that call private functions from modeltest when you run it on a table model. Andreas -- You will live a long, healthy, happy life and make bags of money. _______________________________________________ PyQt mailing list [email protected] http://www.riverbankcomputing.com/mailman/listinfo/pyqt
