forked from openlp/openlp
Code cleanups
This commit is contained in:
parent
cef92476ad
commit
f3646cf6e6
@ -228,13 +228,6 @@ def image_to_byte(image):
|
||||
# use buffer to store pixmap into byteArray
|
||||
buffie = QtCore.QBuffer(byte_array)
|
||||
buffie.open(QtCore.QIODevice.WriteOnly)
|
||||
# if isinstance(image, QtGui.QImage):
|
||||
# log.debug(u'image_to_byte - image')
|
||||
# #pixmap = QtGui.QPixmap.fromImage(image)
|
||||
# pixmap = image
|
||||
# else:
|
||||
# log.debug(u'image_to_byte - pixmap')
|
||||
# pixmap = QtGui.QPixmap(image)
|
||||
image.save(buffie, "PNG")
|
||||
log.debug(u'image_to_byte - end')
|
||||
# convert to base64 encoding so does not get missed!
|
||||
|
@ -584,9 +584,6 @@ class SlideController(QtGui.QWidget):
|
||||
else:
|
||||
label = QtGui.QLabel()
|
||||
label.setMargin(4)
|
||||
# pixmap = resize_image(frame[u'image'],
|
||||
# self.parent.RenderManager.width,
|
||||
# self.parent.RenderManager.height)
|
||||
label.setScaledContents(True)
|
||||
label.setPixmap(QtGui.QPixmap.fromImage(frame[u'image']))
|
||||
self.PreviewListWidget.setCellWidget(framenumber, 0, label)
|
||||
|
Loading…
Reference in New Issue
Block a user