comparison PreferencesDialog.py @ 61:db35ab7753f0

add a preference to hide read feed entries
author Dirk Olmes <dirk@xanthippe.ping.de>
date Sat, 24 Jul 2010 03:11:06 +0200
parents 03358c113170
children e8c2730eb444
comparison
equal deleted inserted replaced
60:d063e4814357 61:db35ab7753f0
13 self.fillUi() 13 self.fillUi()
14 14
15 def fillUi(self): 15 def fillUi(self):
16 maximized = self.preferences.startMaximized() 16 maximized = self.preferences.startMaximized()
17 self.ui.startMaximized.setChecked(maximized) 17 self.ui.startMaximized.setChecked(maximized)
18
19 hideRead = self.preferences.hideReadFeedEntries()
20 self.ui.hideReadFeedEntries.setChecked(hideRead)
18 21
19 def startMaximizedChanged(self, change): 22 def startMaximizedChanged(self, change):
20 if change: 23 if change:
21 self.preferences.setStartMaximized(True) 24 self.preferences.setStartMaximized(True)
22 else: 25 else:
23 self.preferences.setStartMaximized(False) 26 self.preferences.setStartMaximized(False)
27
28 def hideReadFeedEntriesChanged(self, change):
29 if change:
30 self.preferences.setHideReadFeedEntries(True)
31 else:
32 self.preferences.setHideReadFeedEntries(False)
24 33
25 def accept(self): 34 def accept(self):
26 self.session.commit() 35 self.session.commit()
27 QtGui.QDialog.accept(self) 36 QtGui.QDialog.accept(self)
28 37