forked from openlp/openlp
Fix replacement backgrounds
This commit is contained in:
parent
c94f88b84a
commit
dabc04c7dd
@ -234,8 +234,11 @@ class MainDisplay(DisplayWidget):
|
|||||||
Display an image, as is.
|
Display an image, as is.
|
||||||
"""
|
"""
|
||||||
if image:
|
if image:
|
||||||
|
if isinstance(image, QtGui.QImage):
|
||||||
js = u'show_image("data:image/png;base64,%s");' % \
|
js = u'show_image("data:image/png;base64,%s");' % \
|
||||||
image_to_byte(image)
|
image_to_byte(image)
|
||||||
|
else:
|
||||||
|
js = u'show_image("data:image/png;base64,%s");' % image
|
||||||
else:
|
else:
|
||||||
js = u'show_image("");'
|
js = u'show_image("");'
|
||||||
self.frame.evaluateJavaScript(js)
|
self.frame.evaluateJavaScript(js)
|
||||||
@ -246,7 +249,7 @@ class MainDisplay(DisplayWidget):
|
|||||||
Used after Image plugin has changed the background
|
Used after Image plugin has changed the background
|
||||||
"""
|
"""
|
||||||
log.debug(u'resetImage')
|
log.debug(u'resetImage')
|
||||||
self.displayImage(self.serviceItem.bg_frame)
|
self.displayImage(self.serviceItem.bg_image_bytes)
|
||||||
|
|
||||||
def resetVideo(self):
|
def resetVideo(self):
|
||||||
"""
|
"""
|
||||||
|
Loading…
Reference in New Issue
Block a user