forked from openlp/openlp
fixed #FIXME: constructor
This commit is contained in:
parent
8761117d34
commit
2c94f0df83
@ -45,9 +45,7 @@ class FileRenameForm(QtGui.QDialog, Ui_FileRenameDialog):
|
||||
"""
|
||||
Constructor
|
||||
"""
|
||||
super().__init__()
|
||||
# TODO: python3 - parent correct?
|
||||
#QtGui.QDialog.__init__(self, self.main_window)
|
||||
super(FileRenameForm, self).__init__(Registry().get(u'main_window'))
|
||||
self.setupUi(self)
|
||||
|
||||
def exec_(self, copy=False):
|
||||
@ -61,12 +59,12 @@ class FileRenameForm(QtGui.QDialog, Ui_FileRenameDialog):
|
||||
self.file_name_edit.setFocus()
|
||||
return QtGui.QDialog.exec_(self)
|
||||
|
||||
def _get_main_window(self):
|
||||
"""
|
||||
Adds the main window to the class dynamically
|
||||
"""
|
||||
if not hasattr(self, u'_main_window'):
|
||||
self._main_window = Registry().get(u'main_window')
|
||||
return self._main_window
|
||||
|
||||
main_window = property(_get_main_window)
|
||||
# def _get_main_window(self):
|
||||
# """
|
||||
# Adds the main window to the class dynamically
|
||||
# """
|
||||
# if not hasattr(self, u'_main_window'):
|
||||
# self._main_window = Registry().get(u'main_window')
|
||||
# return self._main_window
|
||||
#
|
||||
# main_window = property(_get_main_window)
|
||||
|
@ -44,9 +44,7 @@ class ServiceItemEditForm(QtGui.QDialog, Ui_ServiceItemEditDialog):
|
||||
Constructor
|
||||
|
||||
"""
|
||||
super().__init__()
|
||||
# TODO: python3 - parent correct?
|
||||
#QtGui.QDialog.__init__(self, self.main_window)
|
||||
super(ServiceItemEditForm, self).__init__(Registry().get(u'main_window'))
|
||||
self.setupUi(self)
|
||||
self.item_list = []
|
||||
self.list_widget.currentRowChanged.connect(self.on_current_row_changed)
|
||||
|
@ -43,9 +43,7 @@ class ServiceNoteForm(QtGui.QDialog):
|
||||
"""
|
||||
Constructor
|
||||
"""
|
||||
super().__init__()
|
||||
# TODO: python3 - parent correct?
|
||||
#QtGui.QDialog.__init__(self, self.main_window)
|
||||
super(ServiceNoteForm, self).__init__(Registry().get(u'main_window'))
|
||||
self.setupUi()
|
||||
self.retranslateUi()
|
||||
|
||||
|
@ -45,9 +45,7 @@ class StartTimeForm(QtGui.QDialog, Ui_StartTimeDialog):
|
||||
"""
|
||||
Constructor
|
||||
"""
|
||||
super().__init__()
|
||||
# TODO: python3 - parent correct?
|
||||
#QtGui.QDialog.__init__(self, self.main_window)
|
||||
super(StartTimeForm, self).__init__(Registry().get(u'main_window'))
|
||||
self.setupUi(self)
|
||||
|
||||
def exec_(self):
|
||||
|
Loading…
Reference in New Issue
Block a user