forked from openlp/openlp
fixed #FIXME: constructor
This commit is contained in:
commit
fb0c1731d5
@ -184,9 +184,7 @@ class SettingsTab(QtGui.QWidget):
|
|||||||
"""
|
"""
|
||||||
Adds the media controller to the class dynamically
|
Adds the media controller to the class dynamically
|
||||||
"""
|
"""
|
||||||
# if not hasattr(self, '_media_controller'):
|
if not hasattr(self, '_media_controller'):
|
||||||
# self._media_controller = Registry().get('media_controller')
|
|
||||||
# FIXME: python3
|
|
||||||
self._media_controller = Registry().get('media_controller')
|
self._media_controller = Registry().get('media_controller')
|
||||||
return self._media_controller
|
return self._media_controller
|
||||||
|
|
||||||
|
@ -45,9 +45,7 @@ class FileRenameForm(QtGui.QDialog, Ui_FileRenameDialog):
|
|||||||
"""
|
"""
|
||||||
Constructor
|
Constructor
|
||||||
"""
|
"""
|
||||||
super().__init__()
|
super(FileRenameForm, self).__init__(Registry().get(u'main_window'))
|
||||||
# TODO: python3 - parent correct?
|
|
||||||
#QtGui.QDialog.__init__(self, self.main_window)
|
|
||||||
self.setupUi(self)
|
self.setupUi(self)
|
||||||
|
|
||||||
def exec_(self, copy=False):
|
def exec_(self, copy=False):
|
||||||
@ -61,12 +59,12 @@ class FileRenameForm(QtGui.QDialog, Ui_FileRenameDialog):
|
|||||||
self.file_name_edit.setFocus()
|
self.file_name_edit.setFocus()
|
||||||
return QtGui.QDialog.exec_(self)
|
return QtGui.QDialog.exec_(self)
|
||||||
|
|
||||||
def _get_main_window(self):
|
# def _get_main_window(self):
|
||||||
"""
|
# """
|
||||||
Adds the main window to the class dynamically
|
# Adds the main window to the class dynamically
|
||||||
"""
|
# """
|
||||||
if not hasattr(self, u'_main_window'):
|
# if not hasattr(self, u'_main_window'):
|
||||||
self._main_window = Registry().get(u'main_window')
|
# self._main_window = Registry().get(u'main_window')
|
||||||
return self._main_window
|
# return self._main_window
|
||||||
|
#
|
||||||
main_window = property(_get_main_window)
|
# main_window = property(_get_main_window)
|
||||||
|
@ -55,7 +55,7 @@ class PlayerTab(SettingsTab):
|
|||||||
"""
|
"""
|
||||||
Constructor
|
Constructor
|
||||||
"""
|
"""
|
||||||
self.media_players = self.media_controller.media_players
|
self.media_players = Registry().get('media_controller').media_players
|
||||||
self.saved_used_players = None
|
self.saved_used_players = None
|
||||||
self.icon_path = u':/media/multimedia-player.png'
|
self.icon_path = u':/media/multimedia-player.png'
|
||||||
player_translated = translate('OpenLP.PlayerTab', 'Players')
|
player_translated = translate('OpenLP.PlayerTab', 'Players')
|
||||||
|
@ -44,9 +44,7 @@ class ServiceItemEditForm(QtGui.QDialog, Ui_ServiceItemEditDialog):
|
|||||||
Constructor
|
Constructor
|
||||||
|
|
||||||
"""
|
"""
|
||||||
super().__init__()
|
super(ServiceItemEditForm, self).__init__(Registry().get(u'main_window'))
|
||||||
# TODO: python3 - parent correct?
|
|
||||||
#QtGui.QDialog.__init__(self, self.main_window)
|
|
||||||
self.setupUi(self)
|
self.setupUi(self)
|
||||||
self.item_list = []
|
self.item_list = []
|
||||||
self.list_widget.currentRowChanged.connect(self.on_current_row_changed)
|
self.list_widget.currentRowChanged.connect(self.on_current_row_changed)
|
||||||
|
@ -43,9 +43,7 @@ class ServiceNoteForm(QtGui.QDialog):
|
|||||||
"""
|
"""
|
||||||
Constructor
|
Constructor
|
||||||
"""
|
"""
|
||||||
super().__init__()
|
super(ServiceNoteForm, self).__init__(Registry().get(u'main_window'))
|
||||||
# TODO: python3 - parent correct?
|
|
||||||
#QtGui.QDialog.__init__(self, self.main_window)
|
|
||||||
self.setupUi()
|
self.setupUi()
|
||||||
self.retranslateUi()
|
self.retranslateUi()
|
||||||
|
|
||||||
|
@ -45,9 +45,7 @@ class StartTimeForm(QtGui.QDialog, Ui_StartTimeDialog):
|
|||||||
"""
|
"""
|
||||||
Constructor
|
Constructor
|
||||||
"""
|
"""
|
||||||
super().__init__()
|
super(StartTimeForm, self).__init__(Registry().get(u'main_window'))
|
||||||
# TODO: python3 - parent correct?
|
|
||||||
#QtGui.QDialog.__init__(self, self.main_window)
|
|
||||||
self.setupUi(self)
|
self.setupUi(self)
|
||||||
|
|
||||||
def exec_(self):
|
def exec_(self):
|
||||||
|
Loading…
Reference in New Issue
Block a user