Mercurial > hg > Feedworm
comparison MainWindow.py @ 48:6e5219e05625
GUI for feed settings
author | Dirk Olmes <dirk@xanthippe.ping.de> |
---|---|
date | Sun, 16 May 2010 08:26:46 +0200 |
parents | a8442c3487b5 |
children | 6eba4168fd54 |
comparison
equal
deleted
inserted
replaced
47:a8442c3487b5 | 48:6e5219e05625 |
---|---|
1 | 1 |
2 from AddFeed import AddFeed | 2 from AddFeed import AddFeed |
3 from DisplayModel import DisplayModel | 3 from DisplayModel import DisplayModel |
4 from Feed import Feed | 4 from Feed import Feed |
5 from FeedEntry import FeedEntry | 5 from FeedEntry import FeedEntry |
6 from FeedSettings import FeedSettings | |
6 from PreferencesDialog import PreferencesDialog | 7 from PreferencesDialog import PreferencesDialog |
7 from PyQt4 import QtGui | 8 from PyQt4 import QtGui |
8 from PyQt4.QtCore import QUrl | 9 from PyQt4.QtCore import QUrl |
9 from PyQt4.QtGui import QFont | 10 from PyQt4.QtGui import QFont |
10 from Ui_MainWindow import Ui_MainWindow | 11 from Ui_MainWindow import Ui_MainWindow |
79 | 80 |
80 def showPreferences(self): | 81 def showPreferences(self): |
81 preferences = PreferencesDialog(self.session) | 82 preferences = PreferencesDialog(self.session) |
82 preferences.exec_() | 83 preferences.exec_() |
83 | 84 |
85 def showFeedSettings(self): | |
86 feedSettings = FeedSettings(self.session, self.selectedFeed) | |
87 feedSettings.exec_() | |
88 | |
84 | 89 |
85 class FeedEntryItemDelegate(QtGui.QStyledItemDelegate): | 90 class FeedEntryItemDelegate(QtGui.QStyledItemDelegate): |
86 def __init__(self): | 91 def __init__(self): |
87 QtGui.QStyledItemDelegate.__init__(self, None) | 92 QtGui.QStyledItemDelegate.__init__(self, None) |
88 | 93 |