mirror of
https://github.com/kovidgoyal/calibre.git
synced 2025-07-07 10:14:46 -04:00
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:
parent
30f3edb45a
commit
a5414ff115
@ -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')
|
||||
|
@ -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')
|
||||
|
Loading…
x
Reference in New Issue
Block a user