forked from openlp/openlp
Improve readability for white space patch
This commit is contained in:
parent
9c6ddbf109
commit
a224d6a895
@ -205,13 +205,15 @@ class MediaManagerItem(QtGui.QWidget):
|
||||
self.addToolbarButton(
|
||||
translate(
|
||||
self.TranslationContext, u'New ' + self.PluginTextShort),
|
||||
translate(self.TranslationContext,
|
||||
translate(
|
||||
self.TranslationContext,
|
||||
u'Add a new ' + self.PluginTextShort),
|
||||
u':' + self.IconPath + u'_new.png', self.onNewClick,
|
||||
self.PluginTextShort + u'NewItem')
|
||||
## Edit Button ##
|
||||
if self.hasEditIcon:
|
||||
self.addToolbarButton(translate(
|
||||
self.addToolbarButton(
|
||||
translate(
|
||||
self.TranslationContext, u'Edit ' + self.PluginTextShort),
|
||||
translate(
|
||||
self.TranslationContext,
|
||||
@ -240,9 +242,11 @@ class MediaManagerItem(QtGui.QWidget):
|
||||
u':/system/system_live.png', self.onLiveClick, u'LiveItem')
|
||||
## Add to service Button ##
|
||||
self.addToolbarButton(
|
||||
translate(self.TranslationContext,
|
||||
translate(
|
||||
self.TranslationContext,
|
||||
u'Add ' + self.PluginTextShort + u' To Service'),
|
||||
translate(self.TranslationContext,
|
||||
translate(
|
||||
self.TranslationContext,
|
||||
u'Add the selected item(s) to the service'),
|
||||
u':/system/system_add.png', self.onAddClick,
|
||||
self.PluginTextShort + u'AddItem')
|
||||
|
@ -141,8 +141,9 @@ class MainDisplay(QtGui.QWidget):
|
||||
painter = QtGui.QPainter(alertframe)
|
||||
top = alertframe.rect().height() * 0.9
|
||||
painter.fillRect(
|
||||
QtCore.QRect(0, top,
|
||||
alertframe.rect().width(), alertframe.rect().height() - top),
|
||||
QtCore.QRect(
|
||||
0, top, alertframe.rect().width(),
|
||||
alertframe.rect().height() - top),
|
||||
QtGui.QColor(alertTab.bg_color))
|
||||
font = QtGui.QFont()
|
||||
font.setFamily(alertTab.font_face)
|
||||
|
@ -87,8 +87,7 @@ class BGExtract(BibleCommon):
|
||||
versePos = -1
|
||||
else:
|
||||
i = xml_string[:i].rfind(u'<span') + 1
|
||||
# Loose the </span>
|
||||
verseText = xml_string[versePos + 7 : i - 1 ]
|
||||
verseText = xml_string[versePos + 7 : i - 1] # Loose </span>
|
||||
# Chop off verse 1
|
||||
xml_string = xml_string[i - 1 :len(xml_string)]
|
||||
versePos = xml_string.find(VerseSearch) #look for the next verse
|
||||
|
@ -126,7 +126,8 @@ class EditCustomForm(QtGui.QDialog, Ui_customEditDialog):
|
||||
sxml.add_lyrics_to_song()
|
||||
count = 1
|
||||
for i in range (0, self.VerseListView.count()):
|
||||
sxml.add_verse_to_lyrics(u'custom', unicode(count),
|
||||
sxml.add_verse_to_lyrics(
|
||||
u'custom', unicode(count),
|
||||
unicode(self.VerseListView.item(i).text()))
|
||||
count += 1
|
||||
self.customSlide.title = unicode(self.TitleEdit.displayText())
|
||||
|
@ -115,7 +115,8 @@ class PresentationTab(SettingsTab):
|
||||
def save(self):
|
||||
self.config.set_config(
|
||||
u'Powerpoint', unicode(self.PowerpointCheckBox.checkState()))
|
||||
self.config.set_config(u'Powerpoint Viewer',
|
||||
self.config.set_config(
|
||||
u'Powerpoint Viewer',
|
||||
unicode(self.PowerpointViewerCheckBox.checkState()))
|
||||
self.config.set_config(
|
||||
u'Impress', unicode(self.ImpressCheckBox.checkState()))
|
||||
|
@ -63,8 +63,8 @@ class RemoteTab(SettingsTab):
|
||||
def load(self):
|
||||
self.RemotePortSpinBox.setValue(
|
||||
int(self.config.get_config(u'remote port', 4316)))
|
||||
self.RemoteActive.setChecked(int(
|
||||
self.config.get_config(u'startup', 0)))
|
||||
self.RemoteActive.setChecked(
|
||||
int(self.config.get_config(u'startup', 0)))
|
||||
|
||||
def save(self):
|
||||
self.config.set_config(
|
||||
|
Loading…
Reference in New Issue
Block a user