コード例 #1
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))
コード例 #2
0
ファイル: AddBookmarkDialog.py プロジェクト: Darriall/eric
 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))