Fix margins on HBoxLayouts in settings

This commit is contained in:
Miguel Jacq 2018-09-16 14:06:55 +10:00
parent 95f097eae3
commit 026322b458
No known key found for this signature in database
GPG Key ID: EEA4341C6D97A0B6

View File

@ -66,6 +66,7 @@ class SettingsDialog(QtWidgets.QDialog):
use_legacy_v2_onions_layout.addWidget(self.use_legacy_v2_onions_checkbox)
use_legacy_v2_onions_layout.addWidget(use_legacy_v2_onions_label)
use_legacy_v2_onions_layout.addStretch()
use_legacy_v2_onions_layout.setContentsMargins(0,0,0,0)
use_legacy_v2_onions_widget = QtWidgets.QWidget()
use_legacy_v2_onions_widget.setLayout(use_legacy_v2_onions_layout)
@ -95,6 +96,7 @@ class SettingsDialog(QtWidgets.QDialog):
use_stealth_layout.addWidget(self.stealth_checkbox)
use_stealth_layout.addWidget(use_stealth_label)
use_stealth_layout.addStretch()
use_stealth_layout.setContentsMargins(0,0,0,0)
use_stealth_widget = QtWidgets.QWidget()
use_stealth_widget.setLayout(use_stealth_layout)