mirror of
git://github.com/kovidgoyal/calibre.git
synced 2026-05-09 11:14:02 +02:00
Set the spacing around the search bar in a single place
This commit is contained in:
parent
f07623528b
commit
d81aba5fc5
1 changed files with 2 additions and 1 deletions
|
|
@ -176,7 +176,7 @@ def __init__(self, parent):
|
|||
QWidget.__init__(self, parent)
|
||||
self.setObjectName('search_bar')
|
||||
self._layout = l = QHBoxLayout(self)
|
||||
l.setContentsMargins(0,5,0,0)
|
||||
l.setContentsMargins(0, 4, 0, 4)
|
||||
|
||||
x = parent.virtual_library = QToolButton(self)
|
||||
x.setCursor(Qt.PointingHandCursor)
|
||||
|
|
@ -300,6 +300,7 @@ def init_main_window_mixin(self, db):
|
|||
m = l.contentsMargins()
|
||||
m.setTop(0), m.setBottom(0)
|
||||
l.setContentsMargins(m)
|
||||
l.setSpacing(0)
|
||||
self.resize(1012, 740)
|
||||
self.location_manager = LocationManager(self)
|
||||
|
||||
|
|
|
|||
Loading…
Reference in a new issue