Fixing error display in landscape
authorEd Page <eopage@byu.net>
Thu, 13 Jan 2011 03:37:38 +0000 (21:37 -0600)
committerEd Page <eopage@byu.net>
Thu, 13 Jan 2011 03:37:38 +0000 (21:37 -0600)
src/util/qwrappers.py

index df69f41..b84e8ff 100644 (file)
@@ -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)