forked from openlp/openlp
changed constructor
This commit is contained in:
parent
8dd57bcc9d
commit
25e7df079b
@ -177,7 +177,7 @@ class Highlighter(QtGui.QSyntaxHighlighter):
|
|||||||
"""
|
"""
|
||||||
Constructor
|
Constructor
|
||||||
"""
|
"""
|
||||||
QtGui.QSyntaxHighlighter.__init__(self, *args)
|
super(Highlighter, self).__init__(*args)
|
||||||
self.spelling_dictionary = None
|
self.spelling_dictionary = None
|
||||||
|
|
||||||
def highlightBlock(self, text):
|
def highlightBlock(self, text):
|
||||||
@ -205,5 +205,5 @@ class SpellAction(QtGui.QAction):
|
|||||||
"""
|
"""
|
||||||
Constructor
|
Constructor
|
||||||
"""
|
"""
|
||||||
QtGui.QAction.__init__(self, *args)
|
super(SpellAction, self).__init__(*args)
|
||||||
self.triggered.connect(lambda x: self.correct.emit(self.text()))
|
self.triggered.connect(lambda x: self.correct.emit(self.text()))
|
||||||
|
@ -41,7 +41,7 @@ class CustomTab(SettingsTab):
|
|||||||
CustomTab is the Custom settings tab in the settings dialog.
|
CustomTab is the Custom settings tab in the settings dialog.
|
||||||
"""
|
"""
|
||||||
def __init__(self, parent, title, visible_title, icon_path):
|
def __init__(self, parent, title, visible_title, icon_path):
|
||||||
SettingsTab.__init__(self, parent, title, visible_title, icon_path)
|
super(CustomTab, self).__init__(parent, title, visible_title, icon_path)
|
||||||
|
|
||||||
def setupUi(self):
|
def setupUi(self):
|
||||||
self.setObjectName(u'CustomTab')
|
self.setObjectName(u'CustomTab')
|
||||||
|
@ -45,7 +45,7 @@ mentioned above, like so::
|
|||||||
class AuthorsForm(QtGui.QDialog, Ui_AuthorsDialog):
|
class AuthorsForm(QtGui.QDialog, Ui_AuthorsDialog):
|
||||||
|
|
||||||
def __init__(self, parent=None):
|
def __init__(self, parent=None):
|
||||||
QtGui.QDialog.__init__(self, parent)
|
super(AuthorsForm, self).__init__(parent)
|
||||||
self.setupUi(self)
|
self.setupUi(self)
|
||||||
|
|
||||||
This allows OpenLP to use ``self.object`` for all the GUI elements while keeping
|
This allows OpenLP to use ``self.object`` for all the GUI elements while keeping
|
||||||
|
@ -42,7 +42,7 @@ class AuthorsForm(QtGui.QDialog, Ui_AuthorsDialog):
|
|||||||
"""
|
"""
|
||||||
Set up the screen and common data
|
Set up the screen and common data
|
||||||
"""
|
"""
|
||||||
QtGui.QDialog.__init__(self, parent)
|
super(AuthorsForm, self).__init__(parent)
|
||||||
self.setupUi(self)
|
self.setupUi(self)
|
||||||
self.auto_display_name = False
|
self.auto_display_name = False
|
||||||
self.first_name_edit.textEdited.connect(self.on_first_name_edited)
|
self.first_name_edit.textEdited.connect(self.on_first_name_edited)
|
||||||
|
@ -355,7 +355,7 @@ class SingleColumnTableWidget(QtGui.QTableWidget):
|
|||||||
"""
|
"""
|
||||||
Constructor
|
Constructor
|
||||||
"""
|
"""
|
||||||
QtGui.QTableWidget.__init__(self, parent)
|
super(SingleColumnTableWidget, self).__init__(parent)
|
||||||
self.horizontalHeader().setVisible(False)
|
self.horizontalHeader().setVisible(False)
|
||||||
self.setColumnCount(1)
|
self.setColumnCount(1)
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user