def columnCount(self, parent):
     """
     Public method to return the number of columns.
     
     @param parent index of the parent (QModelIndex)
     @return number of columns (integer)
     """
     return min(1, QSortFilterProxyModel.columnCount(self, parent))
Beispiel #2
0
 def columnCount(self, parent):
     """
     Public method to return the number of columns.
     
     @param parent index of the parent (QModelIndex)
     @return number of columns (integer)
     """
     return min(1, QSortFilterProxyModel.columnCount(self, parent))