forked from openlp/openlp
Line length cleanups.
This commit is contained in:
parent
8090adf1bc
commit
7fdd4bb1c1
@ -175,7 +175,8 @@ def create_accept_reject_button_box(parent, okay=False):
|
|||||||
accept_button = QtGui.QDialogButtonBox.Save
|
accept_button = QtGui.QDialogButtonBox.Save
|
||||||
if okay:
|
if okay:
|
||||||
accept_button = QtGui.QDialogButtonBox.Ok
|
accept_button = QtGui.QDialogButtonBox.Ok
|
||||||
button_box.setStandardButtons(accept_button | QtGui.QDialogButtonBox.Cancel)
|
button_box.setStandardButtons(
|
||||||
|
accept_button | QtGui.QDialogButtonBox.Cancel)
|
||||||
button_box.setObjectName(u'%sButtonBox' % parent)
|
button_box.setObjectName(u'%sButtonBox' % parent)
|
||||||
QtCore.QObject.connect(button_box, QtCore.SIGNAL(u'accepted()'),
|
QtCore.QObject.connect(button_box, QtCore.SIGNAL(u'accepted()'),
|
||||||
parent.accept)
|
parent.accept)
|
||||||
@ -445,4 +446,4 @@ def find_and_set_in_combo_box(combo_box, value_to_find):
|
|||||||
if index == -1:
|
if index == -1:
|
||||||
# Not Found.
|
# Not Found.
|
||||||
index = 0
|
index = 0
|
||||||
combo_box.setCurrentIndex(index)
|
combo_box.setCurrentIndex(index)
|
||||||
|
@ -169,7 +169,8 @@ class ServiceManager(QtGui.QWidget):
|
|||||||
self.onServiceTop, shortcuts=[QtCore.Qt.Key_Home])
|
self.onServiceTop, shortcuts=[QtCore.Qt.Key_Home])
|
||||||
self.serviceManagerList.moveTop.setObjectName(u'moveTop')
|
self.serviceManagerList.moveTop.setObjectName(u'moveTop')
|
||||||
action_list = ActionList.get_instance()
|
action_list = ActionList.get_instance()
|
||||||
action_list.add_category(UiStrings().Service, CategoryOrder.standardToolbar)
|
action_list.add_category(
|
||||||
|
UiStrings().Service, CategoryOrder.standardToolbar)
|
||||||
action_list.add_action(
|
action_list.add_action(
|
||||||
self.serviceManagerList.moveTop, UiStrings().Service)
|
self.serviceManagerList.moveTop, UiStrings().Service)
|
||||||
self.serviceManagerList.moveUp = self.orderToolbar.addToolbarButton(
|
self.serviceManagerList.moveUp = self.orderToolbar.addToolbarButton(
|
||||||
@ -179,7 +180,8 @@ class ServiceManager(QtGui.QWidget):
|
|||||||
'Move item up one position in the service.'),
|
'Move item up one position in the service.'),
|
||||||
self.onServiceUp, shortcuts=[QtCore.Qt.Key_PageUp])
|
self.onServiceUp, shortcuts=[QtCore.Qt.Key_PageUp])
|
||||||
self.serviceManagerList.moveUp.setObjectName(u'moveUp')
|
self.serviceManagerList.moveUp.setObjectName(u'moveUp')
|
||||||
action_list.add_action(self.serviceManagerList.moveUp, UiStrings().Service)
|
action_list.add_action(
|
||||||
|
self.serviceManagerList.moveUp, UiStrings().Service)
|
||||||
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',
|
||||||
@ -231,7 +233,8 @@ class ServiceManager(QtGui.QWidget):
|
|||||||
'Expand all the service items.'),
|
'Expand all the service items.'),
|
||||||
self.onExpandAll, shortcuts=[QtCore.Qt.Key_Plus])
|
self.onExpandAll, shortcuts=[QtCore.Qt.Key_Plus])
|
||||||
self.serviceManagerList.expand.setObjectName(u'expand')
|
self.serviceManagerList.expand.setObjectName(u'expand')
|
||||||
action_list.add_action(self.serviceManagerList.expand, UiStrings().Service)
|
action_list.add_action(
|
||||||
|
self.serviceManagerList.expand, UiStrings().Service)
|
||||||
self.serviceManagerList.collapse = self.orderToolbar.addToolbarButton(
|
self.serviceManagerList.collapse = self.orderToolbar.addToolbarButton(
|
||||||
translate('OpenLP.ServiceManager', '&Collapse all'),
|
translate('OpenLP.ServiceManager', '&Collapse all'),
|
||||||
u':/services/service_collapse_all.png',
|
u':/services/service_collapse_all.png',
|
||||||
@ -1311,4 +1314,4 @@ class ServiceManager(QtGui.QWidget):
|
|||||||
Print a Service Order Sheet.
|
Print a Service Order Sheet.
|
||||||
"""
|
"""
|
||||||
settingDialog = PrintServiceForm(self.mainwindow, self)
|
settingDialog = PrintServiceForm(self.mainwindow, self)
|
||||||
settingDialog.exec_()
|
settingDialog.exec_()
|
||||||
|
@ -53,7 +53,8 @@ class StartTimeForm(QtGui.QDialog, Ui_StartTimeDialog):
|
|||||||
self.hourFinishSpinBox.setValue(hours)
|
self.hourFinishSpinBox.setValue(hours)
|
||||||
self.minuteFinishSpinBox.setValue(minutes)
|
self.minuteFinishSpinBox.setValue(minutes)
|
||||||
self.secondFinishSpinBox.setValue(seconds)
|
self.secondFinishSpinBox.setValue(seconds)
|
||||||
self.hourFinishLabel.setText(u'%s%s' % (unicode(hour), UiStrings().Hours))
|
self.hourFinishLabel.setText(u'%s%s' % (unicode(hour),
|
||||||
|
UiStrings().Hours))
|
||||||
self.minuteFinishLabel.setText(u'%s%s' %
|
self.minuteFinishLabel.setText(u'%s%s' %
|
||||||
(unicode(minutes), UiStrings().Minutes))
|
(unicode(minutes), UiStrings().Minutes))
|
||||||
self.secondFinishLabel.setText(u'%s%s' %
|
self.secondFinishLabel.setText(u'%s%s' %
|
||||||
@ -90,4 +91,4 @@ class StartTimeForm(QtGui.QDialog, Ui_StartTimeDialog):
|
|||||||
seconds -= 3600 * hours
|
seconds -= 3600 * hours
|
||||||
minutes = seconds / 60
|
minutes = seconds / 60
|
||||||
seconds -= 60 * minutes
|
seconds -= 60 * minutes
|
||||||
return hours, minutes, seconds
|
return hours, minutes, seconds
|
||||||
|
Loading…
Reference in New Issue
Block a user