openlp-core team mailing list archive
-
openlp-core team
-
Mailing list archive
-
Message #06687
[Merge] lp:~trb143/openlp/bugs into lp:openlp
Tim Bentley has proposed merging lp:~trb143/openlp/bugs into lp:openlp.
Requested reviews:
OpenLP Core (openlp-core)
Related bugs:
#693150 Custom Slide Display footer option
https://bugs.launchpad.net/bugs/693150
#693202 delete theme
https://bugs.launchpad.net/bugs/693202
For more details, see:
https://code.launchpad.net/~trb143/openlp/bugs/+merge/52229
Remove the need to double start the display's
Fix the long outstanding image black background bug.
--
https://code.launchpad.net/~trb143/openlp/bugs/+merge/52229
Your team OpenLP Core is requested to review the proposed merge of lp:~trb143/openlp/bugs into lp:openlp.
=== modified file 'openlp/core/lib/rendermanager.py'
--- openlp/core/lib/rendermanager.py 2011-02-25 18:05:02 +0000
+++ openlp/core/lib/rendermanager.py 2011-03-04 17:27:42 +0000
@@ -69,7 +69,6 @@
self.image_manager = ImageManager()
self.display = MainDisplay(self, screens, False)
self.display.imageManager = self.image_manager
- self.display.setup()
self.theme_manager = theme_manager
self.renderer = Renderer()
self.calculate_default(self.screens.current[u'size'])
=== modified file 'openlp/core/ui/mainwindow.py'
--- openlp/core/ui/mainwindow.py 2011-02-24 16:56:35 +0000
+++ openlp/core/ui/mainwindow.py 2011-03-04 17:27:42 +0000
@@ -650,8 +650,6 @@
Show the main form, as well as the display form
"""
QtGui.QWidget.show(self)
- self.liveController.display.setup()
- self.previewController.display.setup()
if self.liveController.display.isVisible():
self.liveController.display.setFocus()
self.activateWindow()
=== modified file 'openlp/core/ui/slidecontroller.py'
--- openlp/core/ui/slidecontroller.py 2011-02-24 05:47:38 +0000
+++ openlp/core/ui/slidecontroller.py 2011-03-04 17:27:42 +0000
@@ -624,6 +624,11 @@
self.parent.renderManager.width,
self.parent.renderManager.height)
else:
+ # If current slide set background to image
+ if framenumber == slideno:
+ self.serviceItem.bg_image_bytes = \
+ self.parent.renderManager.image_manager. \
+ get_image_bytes(frame[u'title'])
image = self.parent.renderManager.image_manager. \
get_image(frame[u'title'])
label.setPixmap(QtGui.QPixmap.fromImage(image))
@@ -857,6 +862,8 @@
frame = self.display.text(toDisplay)
else:
frame = self.display.image(toDisplay)
+ # reset the store used to display first image
+ self.serviceItem.bg_image_bytes = None
self.slidePreview.setPixmap(QtGui.QPixmap.fromImage(frame))
self.selectedRow = row
Receiver.send_message(u'slidecontroller_%s_changed' % self.typePrefix,
Follow ups