From bc2d11d24d47001c3b052c2260e26979579232ca Mon Sep 17 00:00:00 2001 From: Ed Page Date: Wed, 12 Jan 2011 21:36:11 -0600 Subject: [PATCH] Errors display to the left when in landscape, fixed --- src/util/qwrappers.py | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/src/util/qwrappers.py b/src/util/qwrappers.py index df69f41..b84e8ff 100644 --- a/src/util/qwrappers.py +++ b/src/util/qwrappers.py @@ -161,10 +161,14 @@ class WindowWrapper(object): self._layout = QtGui.QBoxLayout(QtGui.QBoxLayout.LeftToRight) self._layout.setContentsMargins(0, 0, 0, 0) - self._layout.addWidget(self._errorDisplay.toplevel) + + self._superLayout = QtGui.QVBoxLayout() + self._superLayout.addWidget(self._errorDisplay.toplevel) + self._superLayout.setContentsMargins(0, 0, 0, 0) + self._superLayout.addLayout(self._layout) centralWidget = QtGui.QWidget() - centralWidget.setLayout(self._layout) + centralWidget.setLayout(self._superLayout) centralWidget.setContentsMargins(0, 0, 0, 0) self._window = QtGui.QMainWindow(parent) -- 1.7.9.5