forked from openlp/openlp
Replace QObject.connect calls with a smarter more pythonic syntax. Courtesy of TRB143++.
This commit is contained in:
parent
92b42a6bb5
commit
0df1f3932a
@ -112,10 +112,10 @@ class OpenLPWizard(QtGui.QWizard):
|
|||||||
self.registerFields()
|
self.registerFields()
|
||||||
self.customInit()
|
self.customInit()
|
||||||
self.customSignals()
|
self.customSignals()
|
||||||
QtCore.QObject.connect(self, QtCore.SIGNAL(u'currentIdChanged(int)'), self.onCurrentIdChanged)
|
self.currentIdChanged.connect(self.onCurrentIdChanged)
|
||||||
if self.with_progress_page:
|
if self.with_progress_page:
|
||||||
QtCore.QObject.connect(self.errorCopyToButton, QtCore.SIGNAL(u'clicked()'), self.onErrorCopyToButtonClicked)
|
self.errorCopyToButton.clicked.connect(self.onErrorCopyToButtonClicked)
|
||||||
QtCore.QObject.connect(self.errorSaveToButton, QtCore.SIGNAL(u'clicked()'), self.onErrorSaveToButtonClicked)
|
self.errorSaveToButton.clicked.connect(self.onErrorSaveToButtonClicked)
|
||||||
|
|
||||||
def setupUi(self, image):
|
def setupUi(self, image):
|
||||||
"""
|
"""
|
||||||
|
@ -70,8 +70,8 @@ class DuplicateSongRemovalForm(OpenLPWizard):
|
|||||||
"""
|
"""
|
||||||
Song wizard specific signals.
|
Song wizard specific signals.
|
||||||
"""
|
"""
|
||||||
QtCore.QObject.connect(self.finishButton, QtCore.SIGNAL(u'clicked()'), self.onWizardExit)
|
self.finishButton.clicked.connect(self.onWizardExit)
|
||||||
QtCore.QObject.connect(self.cancelButton, QtCore.SIGNAL(u'clicked()'), self.onWizardExit)
|
self.cancelButton.clicked.connect(self.onWizardExit)
|
||||||
|
|
||||||
def addCustomPages(self):
|
def addCustomPages(self):
|
||||||
"""
|
"""
|
||||||
|
@ -54,7 +54,7 @@ class SongReviewWidget(QtGui.QWidget):
|
|||||||
self.song = song
|
self.song = song
|
||||||
self.setupUi()
|
self.setupUi()
|
||||||
self.retranslateUi()
|
self.retranslateUi()
|
||||||
QtCore.QObject.connect(self.song_remove_button, QtCore.SIGNAL(u'clicked()'), self.on_remove_button_clicked)
|
self.song_remove_button.clicked.connect(self.on_remove_button_clicked)
|
||||||
|
|
||||||
def setupUi(self):
|
def setupUi(self):
|
||||||
self.song_vertical_layout = QtGui.QVBoxLayout(self)
|
self.song_vertical_layout = QtGui.QVBoxLayout(self)
|
||||||
|
Loading…
Reference in New Issue
Block a user