mirror of
https://github.com/kovidgoyal/calibre.git
synced 2025-07-09 03:04:10 -04:00
Workaround for changed behavior of QFormLayout
This commit is contained in:
parent
77bd43ecc4
commit
a5706716b6
@ -471,6 +471,7 @@ class EditSearch(Dialog): # {{{
|
||||
|
||||
def setup_ui(self):
|
||||
self.l = l = QFormLayout(self)
|
||||
l.setFieldGrowthPolicy(l.AllNonFixedFieldsGrow)
|
||||
self.setLayout(l)
|
||||
|
||||
self.search_name = n = QLineEdit(self.search.get('name', ''), self)
|
||||
@ -495,6 +496,7 @@ class EditSearch(Dialog): # {{{
|
||||
|
||||
self.mode_box = m = ModeBox(self)
|
||||
self.mode_box.mode = self.search.get('mode', 'regex')
|
||||
m.setSizePolicy(QSizePolicy.Fixed, QSizePolicy.Fixed)
|
||||
l.addRow(_('&Mode:'), m)
|
||||
|
||||
l.addRow(self.bb)
|
||||
|
Loading…
x
Reference in New Issue
Block a user