Mercurial > hg > Feedworm
changeset 104:4f87be5399ff
double clicking a feed entry opens it in the external browser
author | Dirk Olmes <dirk@xanthippe.ping.de> |
---|---|
date | Sat, 05 Mar 2011 03:40:35 +0100 |
parents | 063581d8594e |
children | d372b3ee7bd8 |
files | MainWindow.py Ui_MainWindow.ui |
diffstat | 2 files changed, 21 insertions(+), 0 deletions(-) [+] |
line wrap: on
line diff
--- 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)
--- 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 @@ </hint> </hints> </connection> + <connection> + <sender>feedEntryList</sender> + <signal>doubleClicked(QModelIndex)</signal> + <receiver>MainWindow</receiver> + <slot>feedEntryDoubleClicked()</slot> + <hints> + <hint type="sourcelabel"> + <x>616</x> + <y>117</y> + </hint> + <hint type="destinationlabel"> + <x>495</x> + <y>374</y> + </hint> + </hints> + </connection> </connections> <slots> <slot>addFeed()</slot> @@ -420,5 +436,6 @@ <slot>showFeedSettings()</slot> <slot>markSelectedFeedRead()</slot> <slot>deleteFeed()</slot> + <slot>feedEntryDoubleClicked()</slot> </slots> </ui>