# HG changeset patch # User Dirk Olmes # Date 1343196043 -7200 # Node ID e2c70c92da02e1178a8a2709031d28181c30dfeb # Parent c694bfb732bc55758643ba89cd5eb651c27f5bac# Parent a683c65d324dbcc2f76a252dc3019ec92e10fe6a Automated merge with https://xanthippe.dyndns.org/hg/Feedworm diff -r a683c65d324d -r e2c70c92da02 Feedworm.qrc --- a/Feedworm.qrc Mon Jun 04 08:35:17 2012 +0200 +++ b/Feedworm.qrc Wed Jul 25 08:00:43 2012 +0200 @@ -1,5 +1,7 @@ + zoom_in.png + zoom_out.png mark_selected_read.jpg mark_all_read.jpg open_in_browser.png diff -r a683c65d324d -r e2c70c92da02 MainWindow.py --- a/MainWindow.py Mon Jun 04 08:35:17 2012 +0200 +++ b/MainWindow.py Wed Jul 25 08:00:43 2012 +0200 @@ -71,6 +71,7 @@ self.ui.feedEntryList.scrollTo(visibleIndex) def feedEntrySelected(self, index): + self.ui.webView.setZoomFactor(1.0) self.ui.menuArticle.setEnabled(True) self.ui.actionOpenLink.setEnabled(True) @@ -173,3 +174,11 @@ def copyArticleURLToClipboard(self): clipboard = QApplication.clipboard() clipboard.setText(self.backend.selectedFeedEntry.link) + + def zoomIn(self): + zoom = self.ui.webView.zoomFactor() + 0.1 + self.ui.webView.setZoomFactor(zoom) + + def zoomOut(self): + zoom = self.ui.webView.zoomFactor() - 0.1 + self.ui.webView.setZoomFactor(zoom) diff -r a683c65d324d -r e2c70c92da02 Ui_MainWindow.ui --- a/Ui_MainWindow.ui Mon Jun 04 08:35:17 2012 +0200 +++ b/Ui_MainWindow.ui Wed Jul 25 08:00:43 2012 +0200 @@ -68,7 +68,7 @@ 0 0 992 - 25 + 23 @@ -121,6 +121,9 @@ + + + @@ -259,6 +262,30 @@ Ctrl+Shift+C + + + + :/newPrefix/zoom_in.png:/newPrefix/zoom_in.png + + + Zoom In + + + Zoom In + + + + + + :/newPrefix/zoom_out.png:/newPrefix/zoom_out.png + + + Zoom Out + + + Zoom Out + + @@ -495,6 +522,38 @@ + + actionZoomIn + activated() + MainWindow + zoomIn() + + + -1 + -1 + + + 495 + 374 + + + + + actionZoomOut + activated() + MainWindow + zoomOut() + + + -1 + -1 + + + 495 + 374 + + + addFeed() @@ -510,5 +569,7 @@ feedEntryDoubleClicked() markSelectedEntriesRead() copyArticleURLToClipboard() + zoomIn() + zoomOut() diff -r a683c65d324d -r e2c70c92da02 zoom_in.png Binary file zoom_in.png has changed diff -r a683c65d324d -r e2c70c92da02 zoom_out.png Binary file zoom_out.png has changed