forked from openlp/openlp
Cleanups
This commit is contained in:
parent
16ab2da4d6
commit
5dc87d3ede
@ -654,7 +654,8 @@ class MainWindow(QtGui.QMainWindow, Ui_MainWindow):
|
|||||||
settings.beginGroup(self.generalSettingsSection)
|
settings.beginGroup(self.generalSettingsSection)
|
||||||
if settings.value(u'screen blank', QtCore.QVariant(False)).toBool():
|
if settings.value(u'screen blank', QtCore.QVariant(False)).toBool():
|
||||||
self.LiveController.mainDisplaySetBackground()
|
self.LiveController.mainDisplaySetBackground()
|
||||||
if settings.value(u'blank warning', QtCore.QVariant(False)).toBool():
|
if settings.value(u'blank warning',
|
||||||
|
QtCore.QVariant(False)).toBool():
|
||||||
QtGui.QMessageBox.question(self,
|
QtGui.QMessageBox.question(self,
|
||||||
translate(u'MainWindow', u'OpenLP Main Display Blanked'),
|
translate(u'MainWindow', u'OpenLP Main Display Blanked'),
|
||||||
translate(u'MainWindow',
|
translate(u'MainWindow',
|
||||||
|
@ -67,9 +67,11 @@ class PluginForm(QtGui.QDialog, Ui_PluginViewDialog):
|
|||||||
if plugin.status == PluginStatus.Active:
|
if plugin.status == PluginStatus.Active:
|
||||||
status_text = unicode(translate(u'PluginForm', u'%s (Active)'))
|
status_text = unicode(translate(u'PluginForm', u'%s (Active)'))
|
||||||
elif plugin.status == PluginStatus.Inactive:
|
elif plugin.status == PluginStatus.Inactive:
|
||||||
status_text = unicode(translate(u'PluginForm', u'%s (Inactive)'))
|
status_text = unicode(
|
||||||
|
translate(u'PluginForm', u'%s (Inactive)'))
|
||||||
elif plugin.status == PluginStatus.Disabled:
|
elif plugin.status == PluginStatus.Disabled:
|
||||||
status_text = unicode(translate(u'PluginForm', u'%s (Disabled)'))
|
status_text = unicode(
|
||||||
|
translate(u'PluginForm', u'%s (Disabled)'))
|
||||||
item.setText(status_text % plugin.name)
|
item.setText(status_text % plugin.name)
|
||||||
# If the plugin has an icon, set it!
|
# If the plugin has an icon, set it!
|
||||||
if plugin.icon:
|
if plugin.icon:
|
||||||
|
@ -435,7 +435,8 @@ class ThemeManager(QtGui.QWidget):
|
|||||||
QtGui.QMessageBox.critical(
|
QtGui.QMessageBox.critical(
|
||||||
self, translate(u'ThemeManager', u'Error'),
|
self, translate(u'ThemeManager', u'Error'),
|
||||||
translate(u'ThemeManager', u'File is not a valid theme.'))
|
translate(u'ThemeManager', u'File is not a valid theme.'))
|
||||||
log.exception(u'Theme file dosen\'t contain XML data %s' % filename)
|
log.exception(u'Theme file dosen\'t contain XML data %s' %
|
||||||
|
filename)
|
||||||
except (IOError, NameError):
|
except (IOError, NameError):
|
||||||
QtGui.QMessageBox.critical(
|
QtGui.QMessageBox.critical(
|
||||||
self, translate(u'ThemeManager', u'Error'),
|
self, translate(u'ThemeManager', u'Error'),
|
||||||
|
@ -113,7 +113,8 @@ class Ui_SongImportWizard(object):
|
|||||||
self.OpenIcon.addPixmap(QtGui.QPixmap(u':/general/general_open.png'),
|
self.OpenIcon.addPixmap(QtGui.QPixmap(u':/general/general_open.png'),
|
||||||
QtGui.QIcon.Normal, QtGui.QIcon.Off)
|
QtGui.QIcon.Normal, QtGui.QIcon.Off)
|
||||||
self.DeleteIcon = QtGui.QIcon()
|
self.DeleteIcon = QtGui.QIcon()
|
||||||
self.DeleteIcon.addPixmap(QtGui.QPixmap(u':/general/general_delete.png'),
|
self.DeleteIcon.addPixmap(
|
||||||
|
QtGui.QPixmap(u':/general/general_delete.png'),
|
||||||
QtGui.QIcon.Normal, QtGui.QIcon.Off)
|
QtGui.QIcon.Normal, QtGui.QIcon.Off)
|
||||||
self.OpenLyricsAddButton.setIcon(self.OpenIcon)
|
self.OpenLyricsAddButton.setIcon(self.OpenIcon)
|
||||||
self.OpenLyricsAddButton.setObjectName(u'OpenLyricsAddButton')
|
self.OpenLyricsAddButton.setObjectName(u'OpenLyricsAddButton')
|
||||||
@ -185,7 +186,8 @@ class Ui_SongImportWizard(object):
|
|||||||
self.CSVLayout.setObjectName(u'CSVLayout')
|
self.CSVLayout.setObjectName(u'CSVLayout')
|
||||||
self.CSVFilenameLabel = QtGui.QLabel(self.CSVPage)
|
self.CSVFilenameLabel = QtGui.QLabel(self.CSVPage)
|
||||||
self.CSVFilenameLabel.setObjectName(u'CSVFilenameLabel')
|
self.CSVFilenameLabel.setObjectName(u'CSVFilenameLabel')
|
||||||
self.CSVLayout.setWidget(0, QtGui.QFormLayout.LabelRole, self.CSVFilenameLabel)
|
self.CSVLayout.setWidget(0, QtGui.QFormLayout.LabelRole,
|
||||||
|
self.CSVFilenameLabel)
|
||||||
self.CSVFileLayout = QtGui.QHBoxLayout()
|
self.CSVFileLayout = QtGui.QHBoxLayout()
|
||||||
self.CSVFileLayout.setSpacing(8)
|
self.CSVFileLayout.setSpacing(8)
|
||||||
self.CSVFileLayout.setObjectName(u'CSVFileLayout')
|
self.CSVFileLayout.setObjectName(u'CSVFileLayout')
|
||||||
@ -196,7 +198,8 @@ class Ui_SongImportWizard(object):
|
|||||||
self.CSVBrowseButton.setIcon(self.OpenIcon)
|
self.CSVBrowseButton.setIcon(self.OpenIcon)
|
||||||
self.CSVBrowseButton.setObjectName(u'CSVBrowseButton')
|
self.CSVBrowseButton.setObjectName(u'CSVBrowseButton')
|
||||||
self.CSVFileLayout.addWidget(self.CSVBrowseButton)
|
self.CSVFileLayout.addWidget(self.CSVBrowseButton)
|
||||||
self.CSVLayout.setLayout(0, QtGui.QFormLayout.FieldRole, self.CSVFileLayout)
|
self.CSVLayout.setLayout(0, QtGui.QFormLayout.FieldRole,
|
||||||
|
self.CSVFileLayout)
|
||||||
self.FormatStackedWidget.addWidget(self.CSVPage)
|
self.FormatStackedWidget.addWidget(self.CSVPage)
|
||||||
self.SourceLayout.addWidget(self.FormatStackedWidget)
|
self.SourceLayout.addWidget(self.FormatStackedWidget)
|
||||||
SongImportWizard.addPage(self.SourcePage)
|
SongImportWizard.addPage(self.SourcePage)
|
||||||
|
Loading…
Reference in New Issue
Block a user