Fixed a few issues in the web browser. 5_0_x

Sun, 30 May 2010 18:54:39 +0200

author
Detlev Offenbach <detlev@die-offenbachs.de>
date
Sun, 30 May 2010 18:54:39 +0200
branch
5_0_x
changeset 315
e44ee3cb994a
parent 310
8f325b6b14ce
child 318
e513e6d31858
child 327
67718697eda1

Fixed a few issues in the web browser.

Documentation/Help/source.qch file | annotate | diff | comparison | revisions
Helpviewer/DownloadDialog.py file | annotate | diff | comparison | revisions
Helpviewer/HelpBrowserWV.py file | annotate | diff | comparison | revisions
Helpviewer/HelpWindow.py file | annotate | diff | comparison | revisions
icons/default/printPreview.png file | annotate | diff | comparison | revisions
Binary file Documentation/Help/source.qch has changed
--- a/Helpviewer/DownloadDialog.py	Sat May 29 18:31:26 2010 +0200
+++ b/Helpviewer/DownloadDialog.py	Sun May 30 18:54:39 2010 +0200
@@ -301,7 +301,7 @@
         Private slot to handle a change of the meta data.
         """
         locationHeader = self.__reply.header(QNetworkRequest.LocationHeader)
-        if locationHeader.isValid():
+        if locationHeader:
             self.__url = locationHeader
             self.__reply = Helpviewer.HelpWindow.HelpWindow.networkAccessManager().get(
                            QNetworkRequest(self.__url))
--- a/Helpviewer/HelpBrowserWV.py	Sat May 29 18:31:26 2010 +0200
+++ b/Helpviewer/HelpBrowserWV.py	Sun May 30 18:54:39 2010 +0200
@@ -924,7 +924,6 @@
         if reply.error() == QNetworkReply.NoError:
             if reply.url().isEmpty():
                 return
-            parent = QUrl(reply.url().toString().rsplit("/", 1)[0] + "/")
             size = reply.header(QNetworkRequest.ContentLengthHeader)
             if size == 0:
                 return
@@ -936,7 +935,7 @@
                 self.connect(dlg, SIGNAL("done()"), self.__downloadDone)
                 self.__downloadWindows.append(dlg)
                 dlg.show()
-            self.setUrl(parent)
+            self.setUrl(self.url())
         else:
             replyUrl = reply.url()
             if replyUrl.isEmpty():
--- a/Helpviewer/HelpWindow.py	Sat May 29 18:31:26 2010 +0200
+++ b/Helpviewer/HelpWindow.py	Sun May 30 18:54:39 2010 +0200
@@ -1598,7 +1598,6 @@
         @param frame reference to the frame to be printed (QWebFrame)
         """
         printer = QPrinter(mode = QPrinter.HighResolution)
-        printer.setFullPage(1)
         if Preferences.getPrinter("ColorMode"):
             printer.setColorMode(QPrinter.Color)
         else:
@@ -1632,7 +1631,6 @@
             browser = self.currentBrowser()
         
         printer = QPrinter(mode = QPrinter.HighResolution)
-        printer.setFullPage(1)
         if Preferences.getPrinter("ColorMode"):
             printer.setColorMode(QPrinter.Color)
         else:
Binary file icons/default/printPreview.png has changed

eric ide

mercurial