mirror of
https://github.com/kovidgoyal/calibre.git
synced 2025-07-09 03:04:10 -04:00
Fix #1960438 [[Enhancement] Windows have more top padding than others](https://bugs.launchpad.net/calibre/+bug/1960438)
This commit is contained in:
parent
d552304ba0
commit
6cfb2e9ab1
@ -105,6 +105,7 @@ class BulkConfig(Config):
|
|||||||
for w in widgets:
|
for w in widgets:
|
||||||
w.set_help_signal.connect(self.help.setPlainText)
|
w.set_help_signal.connect(self.help.setPlainText)
|
||||||
w.setVisible(False)
|
w.setVisible(False)
|
||||||
|
w.layout().setContentsMargins(0, 0, 0, 0)
|
||||||
|
|
||||||
self._groups_model = GroupModel(widgets)
|
self._groups_model = GroupModel(widgets)
|
||||||
self.groups.setModel(self._groups_model)
|
self.groups.setModel(self._groups_model)
|
||||||
|
@ -213,6 +213,19 @@
|
|||||||
</layout>
|
</layout>
|
||||||
</widget>
|
</widget>
|
||||||
</item>
|
</item>
|
||||||
|
<item>
|
||||||
|
<spacer name="verticalSpacer">
|
||||||
|
<property name="orientation">
|
||||||
|
<enum>Qt::Vertical</enum>
|
||||||
|
</property>
|
||||||
|
<property name="sizeHint" stdset="0">
|
||||||
|
<size>
|
||||||
|
<width>20</width>
|
||||||
|
<height>40</height>
|
||||||
|
</size>
|
||||||
|
</property>
|
||||||
|
</spacer>
|
||||||
|
</item>
|
||||||
</layout>
|
</layout>
|
||||||
</widget>
|
</widget>
|
||||||
<resources/>
|
<resources/>
|
||||||
|
@ -240,6 +240,7 @@ class Config(QDialog):
|
|||||||
for w in widgets:
|
for w in widgets:
|
||||||
w.set_help_signal.connect(self.help.setPlainText)
|
w.set_help_signal.connect(self.help.setPlainText)
|
||||||
w.setVisible(False)
|
w.setVisible(False)
|
||||||
|
w.layout().setContentsMargins(0, 0, 0, 0)
|
||||||
|
|
||||||
self._groups_model = GroupModel(widgets)
|
self._groups_model = GroupModel(widgets)
|
||||||
self.groups.setModel(self._groups_model)
|
self.groups.setModel(self._groups_model)
|
||||||
|
@ -101,6 +101,7 @@ class Base(ConfigWidgetBase):
|
|||||||
|
|
||||||
for w in widgets:
|
for w in widgets:
|
||||||
w.changed_signal.connect(self.changed_signal)
|
w.changed_signal.connect(self.changed_signal)
|
||||||
|
w.layout().setContentsMargins(6, 6, 6, 6)
|
||||||
sa = QScrollArea(self)
|
sa = QScrollArea(self)
|
||||||
sa.setWidget(w)
|
sa.setWidget(w)
|
||||||
sa.setWidgetResizable(True)
|
sa.setWidgetResizable(True)
|
||||||
|
Loading…
x
Reference in New Issue
Block a user