forked from openlp/openlp
Merge branch 'set-actions-on-display' into 'master'
Enable keyboard shortcuts for the display window See merge request openlp/openlp!69
This commit is contained in:
commit
db8e21fee4
@ -1003,8 +1003,9 @@ class MainWindow(QtWidgets.QMainWindow, Ui_MainWindow, LogMixin, RegistryPropert
|
||||
"""
|
||||
self.application.set_busy_cursor()
|
||||
self.image_manager.update_display()
|
||||
# self.renderer.update_display()
|
||||
self.renderer.resize(self.live_controller.screens.current.display_geometry.size())
|
||||
self.preview_controller.screen_size_changed()
|
||||
self.live_controller.setup_displays()
|
||||
self.live_controller.screen_size_changed()
|
||||
self.setFocus()
|
||||
self.activateWindow()
|
||||
|
@ -175,6 +175,8 @@ class SlideController(QtWidgets.QWidget, LogMixin, RegistryProperties):
|
||||
if screen.is_display:
|
||||
display = DisplayWindow(self, screen)
|
||||
self.displays.append(display)
|
||||
if self.display:
|
||||
self.__add_actions_to_widget(self.display)
|
||||
|
||||
@property
|
||||
def display(self):
|
||||
@ -639,9 +641,6 @@ class SlideController(QtWidgets.QWidget, LogMixin, RegistryProperties):
|
||||
if self.is_live and self.displays:
|
||||
for display in self.displays:
|
||||
display.resize(self.screens.current.display_geometry.size())
|
||||
# if self.is_live:
|
||||
# self.__add_actions_to_widget(self.display)
|
||||
# The SlidePreview's ratio.
|
||||
|
||||
def __add_actions_to_widget(self, widget):
|
||||
"""
|
||||
|
Loading…
Reference in New Issue
Block a user