Decrease the vertical padding in the main calibre window between the toolbar, central area and status bar. Fixes #1695683 [Reduce unused space in UI](https://bugs.launchpad.net/calibre/+bug/1695683)

This commit is contained in:
Kovid Goyal 2017-06-06 09:32:51 +05:30
parent 44ea4e9600
commit 5f66041b62
No known key found for this signature in database
GPG Key ID: 06BC317B515ACE7C

View File

@ -282,8 +282,10 @@ class MainWindowMixin(object): # {{{
self.setContextMenuPolicy(Qt.NoContextMenu)
self.centralwidget = QWidget(self)
self.setCentralWidget(self.centralwidget)
self._central_widget_layout = QVBoxLayout()
self.centralwidget.setLayout(self._central_widget_layout)
self._central_widget_layout = l = QVBoxLayout(self.centralwidget)
m = l.contentsMargins()
m.setTop(2), m.setBottom(2)
l.setContentsMargins(m)
self.resize(1012, 740)
self.location_manager = LocationManager(self)
@ -305,8 +307,6 @@ class MainWindowMixin(object): # {{{
except AttributeError:
pass # PyQt5 seems to be missing this property
l = self.centralwidget.layout()
# And now, start adding the real widgets
l.addWidget(self.search_bar)