Make DockArea compatible with Qt Designer (#158)

This commit is contained in:
lidstrom83 2019-09-13 23:08:28 -07:00 committed by Ogi Moore
parent 8c137a1caf
commit df28c41d4b

View File

@ -9,9 +9,9 @@ from ..python2_3 import basestring
class DockArea(Container, QtGui.QWidget, DockDrop):
def __init__(self, temporary=False, home=None):
def __init__(self, parent=None, temporary=False, home=None):
Container.__init__(self, self)
QtGui.QWidget.__init__(self)
QtGui.QWidget.__init__(self, parent=parent)
DockDrop.__init__(self, allowedAreas=['left', 'right', 'top', 'bottom'])
self.layout = QtGui.QVBoxLayout()
self.layout.setContentsMargins(0,0,0,0)