Details
-
Bug
-
Resolution: Done
-
P3: Somewhat important
-
4.6.2
-
None
-
5ecdb1a77b06956d3475f7d19dc573815233595a
Description
QAbstractItemModel::rowCount() has a default value for the parent parameter:
http://doc.trolltech.com/4.6/qabstractitemmodel.html#rowCount
but the ProxyModel::rowCount() override does not have the default parameter value:
http://doc.trolltech.com/4.6/qproxymodel.html#rowCount
This makes it slightly harder to use the QAbstractItemModel API polymorphically.
I know that default parameter values are awkward with virtual methods, but I see that other derived classes do keep the default parameter values, so fixing this would make Qt more consistent.