Use fromLocalFile with QUrl.

This commit is contained in:
John Schember 2009-10-03 13:46:22 -04:00
parent 7eba89285e
commit d6984b83c3

View File

@ -112,7 +112,7 @@ class PDFWriter(QObject):
self.logger.debug('Processing %s...' % item)
#self.view.load(QUrl(item))
self.view.setHtml(open(item, 'r+b').read().decode('utf-8'), QUrl(item))
self.view.setHtml(open(item, 'r+b').read().decode('utf-8'), QUrl.fromLocalFile(item))
def _render_html(self, ok):
if ok: