Mercurial > hg > Feedworm
comparison MainWindow.py @ 40:c858aab71e5b
add preferences dialog
author | Dirk Olmes <dirk@xanthippe.ping.de> |
---|---|
date | Fri, 14 May 2010 07:05:02 +0200 |
parents | 0c2578196643 |
children | 0c0d1760b737 |
comparison
equal
deleted
inserted
replaced
39:0c2578196643 | 40:c858aab71e5b |
---|---|
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 Preferences import Preferences | |
6 from PyQt4 import QtGui | 7 from PyQt4 import QtGui |
7 from PyQt4.QtCore import QUrl | 8 from PyQt4.QtCore import QUrl |
8 from PyQt4.QtGui import QFont | 9 from PyQt4.QtGui import QFont |
9 from Ui_MainWindow import Ui_MainWindow | 10 from Ui_MainWindow import Ui_MainWindow |
10 import FeedUpdater | 11 import FeedUpdater |
64 | 65 |
65 def openLinkFromSelectedEntry(self): | 66 def openLinkFromSelectedEntry(self): |
66 url = QUrl(self.selectedEntry.link) | 67 url = QUrl(self.selectedEntry.link) |
67 self.ui.webView.load(url) | 68 self.ui.webView.load(url) |
68 self.ui.webView.show() | 69 self.ui.webView.show() |
70 | |
71 def showPreferences(self): | |
72 preferences = Preferences(self.session) | |
73 preferences.exec_() | |
74 | |
69 | 75 |
70 class FeedEntryItemDelegate(QtGui.QStyledItemDelegate): | 76 class FeedEntryItemDelegate(QtGui.QStyledItemDelegate): |
71 def __init__(self): | 77 def __init__(self): |
72 QtGui.QStyledItemDelegate.__init__(self, None) | 78 QtGui.QStyledItemDelegate.__init__(self, None) |
73 | 79 |