changed constructor

This commit is contained in:
Andreas Preikschat 2013-07-18 13:17:40 +02:00
parent 2c167ca996
commit e8e003d6f8
2 changed files with 2 additions and 2 deletions

View File

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

View File

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