forked from openlp/openlp
changed constructor
This commit is contained in:
parent
2c167ca996
commit
e8e003d6f8
@ -49,7 +49,7 @@ class OpenLPDockWidget(QtGui.QDockWidget):
|
|||||||
Initialise the DockWidget
|
Initialise the DockWidget
|
||||||
"""
|
"""
|
||||||
log.debug(u'Initialise the %s widget' % name)
|
log.debug(u'Initialise the %s widget' % name)
|
||||||
QtGui.QDockWidget.__init__(self, parent)
|
super(OpenLPDockWidget, self).__init__(parent)
|
||||||
if name:
|
if name:
|
||||||
self.setObjectName(name)
|
self.setObjectName(name)
|
||||||
if icon:
|
if icon:
|
||||||
|
@ -44,7 +44,7 @@ class ListWidgetWithDnD(QtGui.QListWidget):
|
|||||||
"""
|
"""
|
||||||
Initialise the list widget
|
Initialise the list widget
|
||||||
"""
|
"""
|
||||||
QtGui.QListWidget.__init__(self, parent)
|
super(ListWidgetWithDnD, self).__init__(parent)
|
||||||
self.mimeDataText = name
|
self.mimeDataText = name
|
||||||
assert(self.mimeDataText)
|
assert(self.mimeDataText)
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user