forked from openlp/openlp
move webview to init and use %s
This commit is contained in:
parent
2518a340ae
commit
65beb6ccda
@ -82,7 +82,9 @@ class Renderer(object):
|
||||
self._calculate_default()
|
||||
QtCore.QObject.connect(Receiver.get_receiver(),
|
||||
QtCore.SIGNAL(u'theme_update_global'), self.set_global_theme)
|
||||
self.web = None
|
||||
self.web = QtWebKit.QWebView()
|
||||
self.web.setVisible(False)
|
||||
self.web_frame = self.web.page().mainFrame()
|
||||
|
||||
def update_display(self):
|
||||
"""
|
||||
@ -398,10 +400,6 @@ class Renderer(object):
|
||||
The footer text block.
|
||||
"""
|
||||
log.debug(u'_set_text_rectangle %s , %s' % (rect_main, rect_footer))
|
||||
if not self.web:
|
||||
self.web = QtWebKit.QWebView()
|
||||
self.web.setVisible(False)
|
||||
self.web_frame = self.web.page().mainFrame()
|
||||
self._rect = rect_main
|
||||
self._rect_footer = rect_footer
|
||||
self.page_width = self._rect.width()
|
||||
|
@ -178,7 +178,7 @@ class ServiceItem(object):
|
||||
self.renderer.set_item_theme(self.theme)
|
||||
self.themedata, self.main, self.footer = self.renderer.pre_render()
|
||||
if self.service_item_type == ServiceItemType.Text:
|
||||
log.debug(u'Formatting slides: ' + self.title)
|
||||
log.debug(u'Formatting slides: %s' % self.title)
|
||||
for slide in self._raw_frames:
|
||||
pages = self.renderer.format_slide(slide[u'raw_slide'], self)
|
||||
for page in pages:
|
||||
|
Loading…
Reference in New Issue
Block a user