Fix #1698723 [Some screens have a lot of padding while others have none](https://bugs.launchpad.net/calibre/+bug/1698723)

This commit is contained in:
Kovid Goyal 2017-06-19 10:37:25 +05:30
parent 30f3edb45a
commit a5414ff115
No known key found for this signature in database
GPG Key ID: 06BC317B515ACE7C
2 changed files with 7 additions and 5 deletions

View File

@ -20,6 +20,7 @@ class ConfigWidget(ConfigWidgetBase):
self.conf_widget = ShortcutConfig(self)
self.conf_widget.changed_signal.connect(self.changed_signal)
self._layout = l = QVBoxLayout()
l.setContentsMargins(0, 0, 0, 0)
self.setLayout(l)
l.addWidget(self.conf_widget)
@ -41,8 +42,8 @@ class ConfigWidget(ConfigWidgetBase):
def highlight_group(self, group_name):
self.conf_widget.highlight_group(group_name)
if __name__ == '__main__':
from PyQt5.Qt import QApplication
app = QApplication([])
test_widget('Advanced', 'Keyboard')
if __name__ == '__main__':
from calibre.gui2 import Application
app = Application([])
test_widget('Advanced', 'Keyboard')

View File

@ -571,7 +571,8 @@ class ConfigWidget(ConfigWidgetBase):
if __name__ == '__main__':
app = QApplication([])
from calibre.gui2 import Application
app = Application([])
# Tweaks()
# test_widget
test_widget('Advanced', 'Tweaks')