forked from openlp/openlp
For updates
This commit is contained in:
parent
999f40ffc9
commit
90023bb853
@ -76,7 +76,7 @@ class OpenLP(QtGui.QApplication):
|
|||||||
"""
|
"""
|
||||||
Load and store current Application Version
|
Load and store current Application Version
|
||||||
"""
|
"""
|
||||||
if u'--dev-version' in sys.argv:
|
if u'--dev-version' in sys.argv or u'-d' in sys.argv:
|
||||||
# If we're running the dev version, let's use bzr to get the version
|
# If we're running the dev version, let's use bzr to get the version
|
||||||
try:
|
try:
|
||||||
# If bzrlib is availble, use it
|
# If bzrlib is availble, use it
|
||||||
|
@ -63,17 +63,20 @@ class Ui_ExceptionDialog(object):
|
|||||||
self.exceptionButtonBox.setStandardButtons(QtGui.QDialogButtonBox.Close)
|
self.exceptionButtonBox.setStandardButtons(QtGui.QDialogButtonBox.Close)
|
||||||
self.exceptionButtonBox.setObjectName(u'exceptionButtonBox')
|
self.exceptionButtonBox.setObjectName(u'exceptionButtonBox')
|
||||||
self.exceptionLayout.addWidget(self.exceptionButtonBox)
|
self.exceptionLayout.addWidget(self.exceptionButtonBox)
|
||||||
|
|
||||||
self.sendReportButton = QtGui.QPushButton(exceptionDialog)
|
self.sendReportButton = QtGui.QPushButton(exceptionDialog)
|
||||||
self.sendReportButton.setIcon(build_icon(
|
self.sendReportButton.setIcon(build_icon(
|
||||||
u':/general/general_email.png'))
|
u':/general/general_email.png'))
|
||||||
self.sendReportButton.setObjectName(u'sendReportButton')
|
self.sendReportButton.setObjectName(u'sendReportButton')
|
||||||
self.exceptionButtonBox.addButton(self.sendReportButton,
|
self.exceptionButtonBox.addButton(self.sendReportButton,
|
||||||
QtGui.QDialogButtonBox.ActionRole)
|
QtGui.QDialogButtonBox.ActionRole)
|
||||||
|
|
||||||
self.saveReportButton = QtGui.QPushButton(exceptionDialog)
|
self.saveReportButton = QtGui.QPushButton(exceptionDialog)
|
||||||
self.saveReportButton.setIcon(build_icon(u':/general/general_save.png'))
|
self.saveReportButton.setIcon(build_icon(u':/general/general_save.png'))
|
||||||
self.saveReportButton.setObjectName(u'saveReportButton')
|
self.saveReportButton.setObjectName(u'saveReportButton')
|
||||||
self.exceptionButtonBox.addButton(self.saveReportButton,
|
self.exceptionButtonBox.addButton(self.saveReportButton,
|
||||||
QtGui.QDialogButtonBox.ActionRole)
|
QtGui.QDialogButtonBox.ActionRole)
|
||||||
|
|
||||||
self.attachFileButton = QtGui.QPushButton(exceptionDialog)
|
self.attachFileButton = QtGui.QPushButton(exceptionDialog)
|
||||||
self.attachFileButton.setIcon(build_icon(u':/general/general_open.png'))
|
self.attachFileButton.setIcon(build_icon(u':/general/general_open.png'))
|
||||||
self.attachFileButton.setObjectName(u'attachFileButton')
|
self.attachFileButton.setObjectName(u'attachFileButton')
|
||||||
|
@ -169,7 +169,7 @@ class ExceptionForm(QtGui.QDialog, Ui_ExceptionDialog):
|
|||||||
self.__buttonState(False)
|
self.__buttonState(False)
|
||||||
self.descriptionWordCount.setText(
|
self.descriptionWordCount.setText(
|
||||||
unicode(translate('OpenLP.ExceptionDialog',
|
unicode(translate('OpenLP.ExceptionDialog',
|
||||||
'Characters to Enter : %s')) % count )
|
'Description characters to Enter : %s')) % count )
|
||||||
|
|
||||||
def onAttachFileButtonPressed(self):
|
def onAttachFileButtonPressed(self):
|
||||||
files = QtGui.QFileDialog.getOpenFileName(
|
files = QtGui.QFileDialog.getOpenFileName(
|
||||||
|
Loading…
Reference in New Issue
Block a user