comparison FeedSettings.py @ 52:6bc6899f3330

allow changing a feed's title
author Dirk Olmes <dirk@xanthippe.ping.de>
date Tue, 18 May 2010 02:56:02 +0200
parents 6e5219e05625
children d292ab61ed6f
comparison
equal deleted inserted replaced
51:8eee0e671696 52:6bc6899f3330
10 self.ui = Ui_FeedSettings() 10 self.ui = Ui_FeedSettings()
11 self.ui.setupUi(self) 11 self.ui.setupUi(self)
12 self.initUi() 12 self.initUi()
13 13
14 def initUi(self): 14 def initUi(self):
15 self.ui.feedTitle.setText(self.feed.title)
15 self.ui.autoLoadArticle.setChecked(self.feed.auto_load_entry_link) 16 self.ui.autoLoadArticle.setChecked(self.feed.auto_load_entry_link)
16 17
17 def autoLoadArticleChanged(self, change): 18 def autoLoadArticleChanged(self, change):
18 if change: 19 if change:
19 self.feed.auto_load_entry_link = True 20 self.feed.auto_load_entry_link = True
25 QtGui.QDialog.accept(self) 26 QtGui.QDialog.accept(self)
26 27
27 def reject(self): 28 def reject(self):
28 self.session.rollback() 29 self.session.rollback()
29 QtGui.QDialog.reject(self) 30 QtGui.QDialog.reject(self)
31
32 def editingTitleFinished(self):
33 title = str(self.ui.feedTitle.text())
34 self.feed.title = title