changeset 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 397688da3d28
children 3be484078991
files MainWindow.py
diffstat 1 files changed, 3 insertions(+), 0 deletions(-) [+]
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)