Make DockArea compatible with Qt Designer (#158)
This commit is contained in:
parent
8c137a1caf
commit
df28c41d4b
@ -9,9 +9,9 @@ from ..python2_3 import basestring
|
|||||||
|
|
||||||
|
|
||||||
class DockArea(Container, QtGui.QWidget, DockDrop):
|
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)
|
Container.__init__(self, self)
|
||||||
QtGui.QWidget.__init__(self)
|
QtGui.QWidget.__init__(self, parent=parent)
|
||||||
DockDrop.__init__(self, allowedAreas=['left', 'right', 'top', 'bottom'])
|
DockDrop.__init__(self, allowedAreas=['left', 'right', 'top', 'bottom'])
|
||||||
self.layout = QtGui.QVBoxLayout()
|
self.layout = QtGui.QVBoxLayout()
|
||||||
self.layout.setContentsMargins(0,0,0,0)
|
self.layout.setContentsMargins(0,0,0,0)
|
||||||
|
Loading…
Reference in New Issue
Block a user