forked from openlp/openlp
Create wrapper routine due to incorrect parameter to slidenext
This commit is contained in:
parent
3c2fa992b8
commit
8bca20a48c
@ -186,7 +186,7 @@ class SlideController(Controller):
|
|||||||
tooltip=translate('OpenLP.SlideController', 'Move to next.'),
|
tooltip=translate('OpenLP.SlideController', 'Move to next.'),
|
||||||
shortcuts=[QtCore.Qt.Key_Down, QtCore.Qt.Key_PageDown],
|
shortcuts=[QtCore.Qt.Key_Down, QtCore.Qt.Key_PageDown],
|
||||||
context=QtCore.Qt.WidgetWithChildrenShortcut,
|
context=QtCore.Qt.WidgetWithChildrenShortcut,
|
||||||
category=self.category, triggers=self.onSlideSelectedNext)
|
category=self.category, triggers=self.onSlideSelectedNextAction)
|
||||||
self.toolbar.addAction(self.nextItem)
|
self.toolbar.addAction(self.nextItem)
|
||||||
self.toolbar.addSeparator()
|
self.toolbar.addSeparator()
|
||||||
if self.isLive:
|
if self.isLive:
|
||||||
@ -1139,6 +1139,13 @@ class SlideController(Controller):
|
|||||||
rect.y(), rect.width(), rect.height())
|
rect.y(), rect.width(), rect.height())
|
||||||
self.slidePreview.setPixmap(winimg)
|
self.slidePreview.setPixmap(winimg)
|
||||||
|
|
||||||
|
def onSlideSelectedNextAction(self, checked):
|
||||||
|
"""
|
||||||
|
Wrapper function from create_action so we can throw away the
|
||||||
|
incorrect parameter
|
||||||
|
"""
|
||||||
|
self.onSlideSelectedNext()
|
||||||
|
|
||||||
def onSlideSelectedNext(self, wrap=None):
|
def onSlideSelectedNext(self, wrap=None):
|
||||||
"""
|
"""
|
||||||
Go to the next slide.
|
Go to the next slide.
|
||||||
|
Loading…
Reference in New Issue
Block a user