forked from openlp/openlp
Rename a method and remove a non needed registry var.
This commit is contained in:
parent
84e9f6f1b1
commit
154c82f5ea
@ -86,7 +86,7 @@ class ListPreviewWidget(QtGui.QTableWidget):
|
|||||||
self.screen_ratio = screen_ratio
|
self.screen_ratio = screen_ratio
|
||||||
self.__recalculate_layout()
|
self.__recalculate_layout()
|
||||||
|
|
||||||
def replace_service_manager_item(self, service_item, width, slideNumber):
|
def replace_service_item(self, service_item, width, slideNumber):
|
||||||
"""
|
"""
|
||||||
Replaces the current preview items with the ones in service_item.
|
Replaces the current preview items with the ones in service_item.
|
||||||
Displays the given slide.
|
Displays the given slide.
|
||||||
@ -170,13 +170,3 @@ class ListPreviewWidget(QtGui.QTableWidget):
|
|||||||
|
|
||||||
image_manager = property(_get_image_manager)
|
image_manager = property(_get_image_manager)
|
||||||
|
|
||||||
def _get_main_window(self):
|
|
||||||
"""
|
|
||||||
Adds the main window to the class dynamically.
|
|
||||||
"""
|
|
||||||
if not hasattr(self, u'_main_window'):
|
|
||||||
self._main_window = Registry().get(u'main_window')
|
|
||||||
return self._main_window
|
|
||||||
|
|
||||||
main_window = property(_get_main_window)
|
|
||||||
|
|
||||||
|
@ -784,7 +784,7 @@ class SlideController(DisplayController):
|
|||||||
if not self.service_item.is_command() and framenumber == slideno:
|
if not self.service_item.is_command() and framenumber == slideno:
|
||||||
self.service_item.bg_image_bytes = self.image_manager.get_image_bytes(frame[u'path'],
|
self.service_item.bg_image_bytes = self.image_manager.get_image_bytes(frame[u'path'],
|
||||||
ImageSource.ImagePlugin)
|
ImageSource.ImagePlugin)
|
||||||
self.preview_widget.replace_service_manager_item(self.service_item, width, slideno)
|
self.preview_widget.replace_service_item(self.service_item, width, slideno)
|
||||||
self.enableToolBar(service_item)
|
self.enableToolBar(service_item)
|
||||||
# Pass to display for viewing.
|
# Pass to display for viewing.
|
||||||
# Postpone image build, we need to do this later to avoid the theme
|
# Postpone image build, we need to do this later to avoid the theme
|
||||||
|
Loading…
Reference in New Issue
Block a user