From: Ed Page Date: Thu, 13 Jan 2011 03:36:11 +0000 (-0600) Subject: Errors display to the left when in landscape, fixed X-Git-Url: http://git.maemo.org/git/?p=gc-dialer;a=commitdiff_plain;h=bc2d11d24d47001c3b052c2260e26979579232ca Errors display to the left when in landscape, fixed --- 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)