openlp-core team mailing list archive
-
openlp-core team
-
Mailing list archive
-
Message #16853
[Merge] lp:~phill-ridout/openlp/issue1045 into lp:openlp
phill has proposed merging lp:~phill-ridout/openlp/issue1045 into lp:openlp.
Requested reviews:
OpenLP Core (openlp-core)
Related bugs:
Bug #1037076 in OpenLP: "Short cut keys do not work for background audio"
https://bugs.launchpad.net/openlp/+bug/1037076
For more details, see:
https://code.launchpad.net/~phill-ridout/openlp/issue1045/+merge/120257
fixes issue 1045 and bug 1037076 "Short cut keys do not work for background audio"
--
https://code.launchpad.net/~phill-ridout/openlp/issue1045/+merge/120257
Your team OpenLP Core is requested to review the proposed merge of lp:~phill-ridout/openlp/issue1045 into lp:openlp.
=== modified file 'openlp/core/ui/slidecontroller.py'
--- openlp/core/ui/slidecontroller.py 2012-07-01 18:41:59 +0000
+++ openlp/core/ui/slidecontroller.py 2012-08-18 13:06:26 +0000
@@ -286,19 +286,20 @@
text=translate('OpenLP.SlideController', 'Pause Audio'),
tooltip=translate('OpenLP.SlideController', 'Pause audio.'),
checked=False, visible=False, category=self.category,
- triggers=self.onAudioPauseClicked)
+ context=QtCore.Qt.WindowShortcut,
+ shortcuts=[], triggers=self.onAudioPauseClicked)
self.audioMenu = QtGui.QMenu(
- translate('OpenLP.SlideController', 'Background Audio'), self)
+ translate('OpenLP.SlideController', 'Background Audio'), self.toolbar)
self.audioPauseItem.setMenu(self.audioMenu)
- self.audioPauseItem.setParent(self)
+ self.audioPauseItem.setParent(self.toolbar)
self.toolbar.widgetForAction(self.audioPauseItem).setPopupMode(
QtGui.QToolButton.MenuButtonPopup)
self.nextTrackItem = create_action(self, u'nextTrackItem',
text=UiStrings().NextTrack,
icon=u':/slides/media_playback_next.png', tooltip=translate(
'OpenLP.SlideController', 'Go to next audio track.'),
- category=self.category, context=QtCore.Qt.WindowShortcut,
- triggers=self.onNextTrackClicked)
+ category=self.category,
+ shortcuts=[], triggers=self.onNextTrackClicked)
self.audioMenu.addAction(self.nextTrackItem)
self.trackMenu = self.audioMenu.addMenu(
translate('OpenLP.SlideController', 'Tracks'))
Follow ups