comparison MainWindow.py @ 97:11036eabbc46

use a smaller default row height
author Dirk Olmes <dirk@xanthippe.ping.de>
date Tue, 28 Dec 2010 03:56:45 +0100
parents e030c6bd2d81
children 063581d8594e
comparison
equal deleted inserted replaced
96:397688da3d28 97:11036eabbc46
31 feedModel = DisplayModel(self, self.allFeeds, Feed.userPresentableString) 31 feedModel = DisplayModel(self, self.allFeeds, Feed.userPresentableString)
32 self.ui.feedList.setModel(feedModel) 32 self.ui.feedList.setModel(feedModel)
33 self.ui.feedList.update() 33 self.ui.feedList.update()
34 34
35 def initFeedEntryList(self): 35 def initFeedEntryList(self):
36 # setup the default row height. This must be called before a table model is set
37 self.ui.feedEntryList.verticalHeader().setDefaultSectionSize(20)
38
36 self.ui.feedEntryList.setItemDelegate(FeedEntryItemDelegate()) 39 self.ui.feedEntryList.setItemDelegate(FeedEntryItemDelegate())
37 self.ui.feedEntryList.setModel(FeedEntryTableModel([])) 40 self.ui.feedEntryList.setModel(FeedEntryTableModel([]))
38 self.ui.feedEntryList.horizontalHeader().setStretchLastSection(True) 41 self.ui.feedEntryList.horizontalHeader().setStretchLastSection(True)
39 42
40 def feedSelected(self, index): 43 def feedSelected(self, index):