# HG changeset patch # User Dirk Olmes # Date 1293435009 -3600 # Node ID a16c4e2b2c555d31768c27ea3f81e704b55372fe # Parent e030c6bd2d8194159616a5c30c65634d3960e02b rename some parameters to be in line with the pyqt docs diff -r e030c6bd2d81 -r a16c4e2b2c55 FeedEntryTableModel.py --- a/FeedEntryTableModel.py Mon Dec 27 07:41:11 2010 +0100 +++ b/FeedEntryTableModel.py Mon Dec 27 08:30:09 2010 +0100 @@ -9,9 +9,9 @@ def __init__(self, *args): QAbstractTableModel.__init__(self, None, *args) - def headerData(self, col, orientation, role): + def headerData(self, section, orientation, role): if orientation == Qt.Horizontal and role == Qt.DisplayRole: - value = self.headerDataForColumn(col) + value = self.headerDataForColumn(section) return QVariant(value) else: return QVariant() @@ -31,10 +31,10 @@ TableModel.__init__(self, *args) self.feedEntries = feedEntries - def rowCount(self, index): + def rowCount(self, parent): return len(self.feedEntries) - def columnCount(self, index): + def columnCount(self, parent): return 2 def dataForRowAndColumn(self, row, column):