small fixes

This commit is contained in:
M2j 2012-04-02 21:34:49 +02:00
parent c747baa2ea
commit 41ff5b04df
2 changed files with 3 additions and 3 deletions

View File

@ -301,7 +301,7 @@ def create_button(parent, name, **kwargs):
kwargs.setdefault(u'tooltip', kwargs.setdefault(u'tooltip',
translate('OpenLP.Ui', 'Move selection down one position.')) translate('OpenLP.Ui', 'Move selection down one position.'))
else: else:
log.warn(u'The role "%s" is not defined increate_push_button().', log.warn(u'The role "%s" is not defined in create_push_button().',
role) role)
if kwargs.pop(u'class', u'') == u'toolbutton': if kwargs.pop(u'class', u'') == u'toolbutton':
button = QtGui.QToolButton(parent) button = QtGui.QToolButton(parent)

View File

@ -90,7 +90,7 @@ class SongExportForm(OpenLPWizard):
""" """
QtCore.QObject.connect(self.availableListWidget, QtCore.QObject.connect(self.availableListWidget,
QtCore.SIGNAL(u'itemActivated(QListWidgetItem*)'), QtCore.SIGNAL(u'itemActivated(QListWidgetItem*)'),
self.onItemTriggered) self.onItemActivated)
QtCore.QObject.connect(self.searchLineEdit, QtCore.QObject.connect(self.searchLineEdit,
QtCore.SIGNAL(u'textEdited(const QString&)'), QtCore.SIGNAL(u'textEdited(const QString&)'),
self.onSearchLineEditChanged) self.onSearchLineEditChanged)
@ -312,7 +312,7 @@ class SongExportForm(OpenLPWizard):
QtCore.QString(unicode(text)), QtCore.Qt.MatchContains) QtCore.QString(unicode(text)), QtCore.Qt.MatchContains)
] ]
def onItemTriggered(self, item): def onItemActivated(self, item):
""" """
Called, when an item in the *availableListWidget* has been triggered. Called, when an item in the *availableListWidget* has been triggered.
The item is check if it was not checked, whereas it is unchecked when it The item is check if it was not checked, whereas it is unchecked when it