forked from openlp/openlp
changed constructors
This commit is contained in:
parent
d7d1a2df88
commit
3409c491fe
|
@ -44,7 +44,7 @@ class TreeWidgetWithDnD(QtGui.QTreeWidget):
|
|||
"""
|
||||
Initialise the tree widget
|
||||
"""
|
||||
QtGui.QTreeWidget.__init__(self, parent)
|
||||
super(TreeWidgetWithDnD, self).__init__(parent)
|
||||
self.mimeDataText = name
|
||||
self.allow_internal_dnd = False
|
||||
self.header().close()
|
||||
|
|
|
@ -46,7 +46,7 @@ class AboutForm(QtGui.QDialog, Ui_AboutDialog):
|
|||
"""
|
||||
Do some initialisation stuff
|
||||
"""
|
||||
QtGui.QDialog.__init__(self, parent)
|
||||
super(AboutForm, self).__init__(parent)
|
||||
application_version = get_application_version()
|
||||
self.setupUi(self)
|
||||
about_text = self.about_text_edit.toPlainText()
|
||||
|
|
|
@ -57,7 +57,7 @@ class AdvancedTab(SettingsTab):
|
|||
self.data_exists = False
|
||||
self.icon_path = u':/system/system_settings.png'
|
||||
advanced_translated = translate('OpenLP.AdvancedTab', 'Advanced')
|
||||
SettingsTab.__init__(self, parent, u'Advanced', advanced_translated)
|
||||
super(AdvancedTab, self).__init__(parent, u'Advanced', advanced_translated)
|
||||
|
||||
def setupUi(self):
|
||||
"""
|
||||
|
|
|
@ -49,7 +49,7 @@ class GeneralTab(SettingsTab):
|
|||
self.screens = ScreenList()
|
||||
self.icon_path = u':/icon/openlp-logo-16x16.png'
|
||||
general_translated = translate('OpenLP.GeneralTab', 'General')
|
||||
SettingsTab.__init__(self, parent, u'Core', general_translated)
|
||||
super(GeneralTab, self).__init__(parent, u'Core', general_translated)
|
||||
|
||||
def setupUi(self):
|
||||
"""
|
||||
|
|
|
@ -475,7 +475,7 @@ class MainWindow(QtGui.QMainWindow, Ui_MainWindow):
|
|||
"""
|
||||
This constructor sets up the interface, the various managers, and the plugins.
|
||||
"""
|
||||
QtGui.QMainWindow.__init__(self)
|
||||
super(MainWindow, self).__init__()
|
||||
Registry().register(u'main_window', self)
|
||||
self.clipboard = self.application.clipboard()
|
||||
self.arguments = self.application.args
|
||||
|
|
Loading…
Reference in New Issue