# HG changeset patch # User Dirk Olmes # Date 1299292835 -3600 # Node ID 4f87be5399ff3db495073473bff354dc19c95419 # Parent 063581d8594e540d4c46df4f9a42fb13959b7370 double clicking a feed entry opens it in the external browser diff -r 063581d8594e -r 4f87be5399ff MainWindow.py --- a/MainWindow.py Wed Feb 16 06:57:06 2011 +0100 +++ b/MainWindow.py Sat Mar 05 03:40:35 2011 +0100 @@ -88,6 +88,10 @@ else: self.openSummaryFromSelectedEntry() + def feedEntryDoubleClicked(self, index): + self.ui.menuArticle.setEnabled(True) + self.openSelectedEntryInBrowser() + def openSummaryFromSelectedEntry(self): # TODO this is the wrong base url, figure out the correct one baseUrl = QUrl(self.selectedEntry.link) diff -r 063581d8594e -r 4f87be5399ff Ui_MainWindow.ui --- a/Ui_MainWindow.ui Wed Feb 16 06:57:06 2011 +0100 +++ b/Ui_MainWindow.ui Sat Mar 05 03:40:35 2011 +0100 @@ -408,6 +408,22 @@ + + feedEntryList + doubleClicked(QModelIndex) + MainWindow + feedEntryDoubleClicked() + + + 616 + 117 + + + 495 + 374 + + + addFeed() @@ -420,5 +436,6 @@ showFeedSettings() markSelectedFeedRead() deleteFeed() + feedEntryDoubleClicked()