forked from openlp/openlp
remove whitespaces and unneeded code
This commit is contained in:
parent
640f21367c
commit
33a343894d
@ -28,8 +28,6 @@ Provide common toolbar handling for OpenLP
|
|||||||
"""
|
"""
|
||||||
import logging
|
import logging
|
||||||
|
|
||||||
from PyQt4 import QtCore, QtGui
|
|
||||||
|
|
||||||
from openlp.core.lib import build_icon
|
from openlp.core.lib import build_icon
|
||||||
|
|
||||||
log = logging.getLogger(__name__)
|
log = logging.getLogger(__name__)
|
||||||
@ -51,7 +49,7 @@ class OpenLPToolbar(QtGui.QToolBar):
|
|||||||
log.debug(u'Init done')
|
log.debug(u'Init done')
|
||||||
|
|
||||||
def addToolbarButton(self, title, icon, tooltip=None, slot=None,
|
def addToolbarButton(self, title, icon, tooltip=None, slot=None,
|
||||||
checkable=False, shortcut=0, alternate=0,
|
checkable=False, shortcut=0, alternate=0,
|
||||||
context=QtCore.Qt.WidgetShortcut):
|
context=QtCore.Qt.WidgetShortcut):
|
||||||
"""
|
"""
|
||||||
A method to help developers easily add a button to the toolbar.
|
A method to help developers easily add a button to the toolbar.
|
||||||
|
@ -155,13 +155,13 @@ class ServiceManager(QtGui.QWidget):
|
|||||||
u':/services/service_top.png',
|
u':/services/service_top.png',
|
||||||
translate('OpenLP.ServiceManager',
|
translate('OpenLP.ServiceManager',
|
||||||
'Move item to the top of the service.'),
|
'Move item to the top of the service.'),
|
||||||
self.onServiceTop, shortcut=QtCore.Qt.Key_Home)
|
self.onServiceTop, shortcut=QtCore.Qt.Key_Home)
|
||||||
self.serviceManagerList.moveUp = self.orderToolbar.addToolbarButton(
|
self.serviceManagerList.moveUp = self.orderToolbar.addToolbarButton(
|
||||||
translate('OpenLP.ServiceManager', 'Move &up'),
|
translate('OpenLP.ServiceManager', 'Move &up'),
|
||||||
u':/services/service_up.png',
|
u':/services/service_up.png',
|
||||||
translate('OpenLP.ServiceManager',
|
translate('OpenLP.ServiceManager',
|
||||||
'Move item up one position in the service.'),
|
'Move item up one position in the service.'),
|
||||||
self.onServiceUp, shortcut=QtCore.Qt.Key_PageUp)
|
self.onServiceUp, shortcut=QtCore.Qt.Key_PageUp)
|
||||||
self.serviceManagerList.moveDown = self.orderToolbar.addToolbarButton(
|
self.serviceManagerList.moveDown = self.orderToolbar.addToolbarButton(
|
||||||
translate('OpenLP.ServiceManager', 'Move &down'),
|
translate('OpenLP.ServiceManager', 'Move &down'),
|
||||||
u':/services/service_down.png',
|
u':/services/service_down.png',
|
||||||
|
@ -432,9 +432,6 @@ class SlideController(QtGui.QWidget):
|
|||||||
self.display.imageManager = self.parent.renderManager.image_manager
|
self.display.imageManager = self.parent.renderManager.image_manager
|
||||||
self.display.alertTab = self.alertTab
|
self.display.alertTab = self.alertTab
|
||||||
self.display.setup()
|
self.display.setup()
|
||||||
self.SlidePreview.setFixedSize(
|
|
||||||
QtCore.QSize(self.settingsmanager.slidecontroller_image,
|
|
||||||
self.settingsmanager.slidecontroller_image / self.ratio))
|
|
||||||
if self.isLive:
|
if self.isLive:
|
||||||
self.display.addActions(
|
self.display.addActions(
|
||||||
[self.previousItem,
|
[self.previousItem,
|
||||||
|
Loading…
Reference in New Issue
Block a user