Mercurial > hg > Feedworm
diff MainWindow.py @ 152:a1c0459e1eeb
rename some methods
author | Dirk Olmes <dirk@xanthippe.ping.de> |
---|---|
date | Sat, 27 Aug 2011 07:11:08 +0200 |
parents | bca9341dc67f |
children | 65c4bb6d5add |
line wrap: on
line diff
--- a/MainWindow.py Sat Aug 27 07:07:50 2011 +0200 +++ b/MainWindow.py Sat Aug 27 07:11:08 2011 +0200 @@ -52,24 +52,24 @@ # TODO move the access to preferences into the backend hideReadEntries = self.preferences.hideReadFeedEntries() self.feedEntries = self.backend.entriesForSelectedFeed(hideReadEntries) - self.initFeedDisplayModel() + self.initFeedEntriesDisplayModel() - def initFeedDisplayModel(self): - self.setupFeedTableModel() + def initFeedEntriesDisplayModel(self): + self.setupFeedEntriesTableModel() self.ui.feedEntryList.update() - self.setupFeedTableHeaderWidths() - self.scrollFirstRowInFeedTableToVisible() + self.setupFeedEntriesTableHeaderWidths() + self.scrollFirstRowInFeedEntriesTableToVisible() - def setupFeedTableModel(self): + def setupFeedEntriesTableModel(self): model = FeedEntryTableModel(self.feedEntries) self.ui.feedEntryList.setModel(model) - def setupFeedTableHeaderWidths(self): + def setupFeedEntriesTableHeaderWidths(self): width = self.ui.feedEntryList.width() firstColumnWidth = int(width * 0.8) self.ui.feedEntryList.setColumnWidth(0, firstColumnWidth) - def scrollFirstRowInFeedTableToVisible(self): + def scrollFirstRowInFeedEntriesTableToVisible(self): model = self.ui.feedEntryList.model() visibleIndex = model.createIndex(0, 0) self.ui.feedEntryList.scrollTo(visibleIndex)