forked from openlp/openlp
- Changed the order of blank to modes in Shortcuts list from:
Black, theme, desktop to desktop, theme, black. - Pep8 fix (Ident)
This commit is contained in:
parent
4cb3debb65
commit
9794d26e95
@ -261,7 +261,7 @@ class Settings(QtCore.QSettings):
|
|||||||
'shortcuts/blankScreen': [QtGui.QKeySequence(QtCore.Qt.Key_Period)],
|
'shortcuts/blankScreen': [QtGui.QKeySequence(QtCore.Qt.Key_Period)],
|
||||||
'shortcuts/collapse': [QtGui.QKeySequence(QtCore.Qt.Key_Minus)],
|
'shortcuts/collapse': [QtGui.QKeySequence(QtCore.Qt.Key_Minus)],
|
||||||
'shortcuts/desktopScreen': [QtGui.QKeySequence(QtCore.Qt.Key_Escape),
|
'shortcuts/desktopScreen': [QtGui.QKeySequence(QtCore.Qt.Key_Escape),
|
||||||
QtGui.QKeySequence(QtCore.Qt.Key_D)],
|
QtGui.QKeySequence(QtCore.Qt.Key_D)],
|
||||||
'shortcuts/delete': [QtGui.QKeySequence(QtGui.QKeySequence.Delete)],
|
'shortcuts/delete': [QtGui.QKeySequence(QtGui.QKeySequence.Delete)],
|
||||||
'shortcuts/down': [QtGui.QKeySequence(QtCore.Qt.Key_Down)],
|
'shortcuts/down': [QtGui.QKeySequence(QtCore.Qt.Key_Down)],
|
||||||
'shortcuts/editSong': [],
|
'shortcuts/editSong': [],
|
||||||
|
@ -234,21 +234,21 @@ class SlideController(DisplayController, RegistryProperties):
|
|||||||
self.hide_menu.setPopupMode(QtWidgets.QToolButton.MenuButtonPopup)
|
self.hide_menu.setPopupMode(QtWidgets.QToolButton.MenuButtonPopup)
|
||||||
self.hide_menu.setMenu(QtWidgets.QMenu(translate('OpenLP.SlideController', 'Hide'), self.toolbar))
|
self.hide_menu.setMenu(QtWidgets.QMenu(translate('OpenLP.SlideController', 'Hide'), self.toolbar))
|
||||||
self.toolbar.add_toolbar_widget(self.hide_menu)
|
self.toolbar.add_toolbar_widget(self.hide_menu)
|
||||||
self.blank_screen = create_action(self, 'blankScreen',
|
|
||||||
text=translate('OpenLP.SlideController', 'Blank Screen'),
|
|
||||||
icon=':/slides/slide_blank.png',
|
|
||||||
checked=False, can_shortcuts=True, category=self.category,
|
|
||||||
triggers=self.on_blank_display)
|
|
||||||
self.theme_screen = create_action(self, 'themeScreen',
|
|
||||||
text=translate('OpenLP.SlideController', 'Blank to Theme'),
|
|
||||||
icon=':/slides/slide_theme.png',
|
|
||||||
checked=False, can_shortcuts=True, category=self.category,
|
|
||||||
triggers=self.on_theme_display)
|
|
||||||
self.desktop_screen = create_action(self, 'desktopScreen',
|
self.desktop_screen = create_action(self, 'desktopScreen',
|
||||||
text=translate('OpenLP.SlideController', 'Show Desktop'),
|
text=translate('OpenLP.SlideController', 'Show Desktop'),
|
||||||
icon=':/slides/slide_desktop.png',
|
icon=':/slides/slide_desktop.png',
|
||||||
checked=False, can_shortcuts=True, category=self.category,
|
checked=False, can_shortcuts=True, category=self.category,
|
||||||
triggers=self.on_hide_display)
|
triggers=self.on_hide_display)
|
||||||
|
self.theme_screen = create_action(self, 'themeScreen',
|
||||||
|
text=translate('OpenLP.SlideController', 'Blank to Theme'),
|
||||||
|
icon=':/slides/slide_theme.png',
|
||||||
|
checked=False, can_shortcuts=True, category=self.category,
|
||||||
|
triggers=self.on_theme_display)
|
||||||
|
self.blank_screen = create_action(self, 'blankScreen',
|
||||||
|
text=translate('OpenLP.SlideController', 'Blank Screen'),
|
||||||
|
icon=':/slides/slide_blank.png',
|
||||||
|
checked=False, can_shortcuts=True, category=self.category,
|
||||||
|
triggers=self.on_blank_display)
|
||||||
self.hide_menu.setDefaultAction(self.blank_screen)
|
self.hide_menu.setDefaultAction(self.blank_screen)
|
||||||
self.hide_menu.menu().addAction(self.blank_screen)
|
self.hide_menu.menu().addAction(self.blank_screen)
|
||||||
self.hide_menu.menu().addAction(self.theme_screen)
|
self.hide_menu.menu().addAction(self.theme_screen)
|
||||||
|
Loading…
Reference in New Issue
Block a user