Mercurial > hg > Feedworm
comparison MainWindow.py @ 150:babe14449162
the entries for the selected feeds had to be set onto the item delegate so had access to the selected feed entry. Keep the list in one place only (the model) and access it from the item delegate.
author | Dirk Olmes <dirk@xanthippe.ping.de> |
---|---|
date | Sat, 27 Aug 2011 06:43:28 +0200 |
parents | 8ec20377bcb0 |
children | bca9341dc67f |
comparison
equal
deleted
inserted
replaced
149:92194216f70d | 150:babe14449162 |
---|---|
60 self.scrollFirstRowInFeedTableToVisible() | 60 self.scrollFirstRowInFeedTableToVisible() |
61 | 61 |
62 def setupFeedTableModel(self): | 62 def setupFeedTableModel(self): |
63 model = FeedEntryTableModel(self.feedEntries) | 63 model = FeedEntryTableModel(self.feedEntries) |
64 self.ui.feedEntryList.setModel(model) | 64 self.ui.feedEntryList.setModel(model) |
65 self.ui.feedEntryList.itemDelegate().entries = self.feedEntries | |
66 | 65 |
67 def setupFeedTableHeaderWidths(self): | 66 def setupFeedTableHeaderWidths(self): |
68 width = self.ui.feedEntryList.width() | 67 width = self.ui.feedEntryList.width() |
69 firstColumnWidth = int(width * 0.8) | 68 firstColumnWidth = int(width * 0.8) |
70 self.ui.feedEntryList.setColumnWidth(0, firstColumnWidth) | 69 self.ui.feedEntryList.setColumnWidth(0, firstColumnWidth) |