changeset 94:a16c4e2b2c55

rename some parameters to be in line with the pyqt docs
author Dirk Olmes <dirk@xanthippe.ping.de>
date Mon, 27 Dec 2010 08:30:09 +0100
parents e030c6bd2d81
children 9bceb1bd3f33
files FeedEntryTableModel.py
diffstat 1 files changed, 4 insertions(+), 4 deletions(-) [+]
line wrap: on
line diff
--- 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):