# HG changeset patch # User Dirk Olmes # Date 1274144162 -7200 # Node ID 6bc6899f3330f4e6f9b5d682c2c21dca8e5c513e # Parent 8eee0e6716965458aab080b9332d0a60eed50d37 allow changing a feed's title diff -r 8eee0e671696 -r 6bc6899f3330 FeedSettings.py --- a/FeedSettings.py Tue May 18 02:32:33 2010 +0200 +++ b/FeedSettings.py Tue May 18 02:56:02 2010 +0200 @@ -12,6 +12,7 @@ self.initUi() def initUi(self): + self.ui.feedTitle.setText(self.feed.title) self.ui.autoLoadArticle.setChecked(self.feed.auto_load_entry_link) def autoLoadArticleChanged(self, change): @@ -27,3 +28,7 @@ def reject(self): self.session.rollback() QtGui.QDialog.reject(self) + + def editingTitleFinished(self): + title = str(self.ui.feedTitle.text()) + self.feed.title = title diff -r 8eee0e671696 -r 6bc6899f3330 Ui_FeedSettings.ui --- a/Ui_FeedSettings.ui Tue May 18 02:32:33 2010 +0200 +++ b/Ui_FeedSettings.ui Tue May 18 02:56:02 2010 +0200 @@ -7,7 +7,7 @@ 0 0 400 - 300 + 126 @@ -20,8 +20,8 @@ - 30 - 240 + 20 + 80 341 32 @@ -37,7 +37,7 @@ 10 - 10 + 40 331 22 @@ -46,6 +46,29 @@ load article's url instead of displaying summary + + + + 42 + 10 + 341 + 23 + + + + + + + 11 + 11 + 26 + 17 + + + + Title + + @@ -99,8 +122,25 @@ + + feedTitle + editingFinished() + FeedSettings + editingTitleFinished() + + + 212 + 21 + + + 199 + 62 + + + autoLoadArticleChanged() + editingTitleFinished()