changed constructors

This commit is contained in:
Andreas Preikschat 2013-07-18 16:11:39 +02:00
parent d7d1a2df88
commit 3409c491fe
5 changed files with 5 additions and 5 deletions

View File

@ -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()

View File

@ -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()

View File

@ -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):
"""

View File

@ -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):
"""

View File

@ -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