Mercurial > hg > Feedworm
diff 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 |
line wrap: on
line diff
--- a/MainWindow.py Fri May 14 06:48:48 2010 +0200 +++ b/MainWindow.py Fri May 14 07:05:02 2010 +0200 @@ -3,6 +3,7 @@ from DisplayModel import DisplayModel from Feed import Feed from FeedEntry import FeedEntry +from Preferences import Preferences from PyQt4 import QtGui from PyQt4.QtCore import QUrl from PyQt4.QtGui import QFont @@ -66,6 +67,11 @@ url = QUrl(self.selectedEntry.link) self.ui.webView.load(url) self.ui.webView.show() + + def showPreferences(self): + preferences = Preferences(self.session) + preferences.exec_() + class FeedEntryItemDelegate(QtGui.QStyledItemDelegate): def __init__(self):