- fixed left/right shortcuts not being configurable

bzr-revno: 1494
This commit is contained in:
Andreas Preikschat 2011-04-28 13:32:19 +02:00
commit aa05b99f75

View File

@ -380,18 +380,21 @@ class SlideController(QtGui.QWidget):
action_list.add_action(self.previousItem) action_list.add_action(self.previousItem)
action_list.add_action(self.nextItem) action_list.add_action(self.nextItem)
self.previousService = shortcut_action(parent, u'previousService', self.previousService = shortcut_action(parent, u'previousService',
[QtCore.Qt.Key_Left], self.servicePrevious, UiStrings().LiveToolbar) [QtCore.Qt.Key_Left], self.servicePrevious,
self.previousService.setShortcutContext(QtCore.Qt.WidgetWithChildrenShortcut) category=UiStrings().LiveToolbar,
context=QtCore.Qt.WidgetWithChildrenShortcut)
self.previousService.setText( self.previousService.setText(
translate('OpenLP.SlideController', 'Previous Service')) translate('OpenLP.SlideController', 'Previous Service'))
self.nextService = shortcut_action(parent, 'nextService', self.nextService = shortcut_action(parent, 'nextService',
[QtCore.Qt.Key_Right], self.serviceNext, UiStrings().LiveToolbar) [QtCore.Qt.Key_Right], self.serviceNext,
self.nextService.setShortcutContext(QtCore.Qt.WidgetWithChildrenShortcut) category=UiStrings().LiveToolbar,
context=QtCore.Qt.WidgetWithChildrenShortcut)
self.nextService.setText( self.nextService.setText(
translate('OpenLP.SlideController', 'Next Service')) translate('OpenLP.SlideController', 'Next Service'))
self.escapeItem = shortcut_action(parent, 'escapeItem', self.escapeItem = shortcut_action(parent, 'escapeItem',
[QtCore.Qt.Key_Escape], self.liveEscape, UiStrings().LiveToolbar) [QtCore.Qt.Key_Escape], self.liveEscape,
self.escapeItem.setShortcutContext(QtCore.Qt.WidgetWithChildrenShortcut) category=UiStrings().LiveToolbar,
context=QtCore.Qt.WidgetWithChildrenShortcut)
self.escapeItem.setText( self.escapeItem.setText(
translate('OpenLP.SlideController', 'Escape Item')) translate('OpenLP.SlideController', 'Escape Item'))
@ -1150,4 +1153,5 @@ class SlideController(QtGui.QWidget):
elif self.desktopScreen.isChecked(): elif self.desktopScreen.isChecked():
return HideMode.Screen return HideMode.Screen
else: else:
return None return None