diff 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
line wrap: on
line diff
--- a/MainWindow.py	Tue Dec 28 03:44:51 2010 +0100
+++ b/MainWindow.py	Tue Dec 28 03:56:45 2010 +0100
@@ -33,6 +33,9 @@
         self.ui.feedList.update()
 
     def initFeedEntryList(self):
+        # setup the default row height. This must be called before a table model is set
+        self.ui.feedEntryList.verticalHeader().setDefaultSectionSize(20)
+
         self.ui.feedEntryList.setItemDelegate(FeedEntryItemDelegate())
         self.ui.feedEntryList.setModel(FeedEntryTableModel([]))
         self.ui.feedEntryList.horizontalHeader().setStretchLastSection(True)