mirror of
https://github.com/onionshare/onionshare.git
synced 2025-01-10 19:52:50 -03:00
set MinimumSize on the word-wrapped QLabels in the SettingsDialog, which prevents them getting squished when parent is resized smaller
This commit is contained in:
parent
af1b56e659
commit
d0f180fdc5
1 changed files with 2 additions and 0 deletions
|
@ -86,12 +86,14 @@ class SettingsDialog(QtWidgets.QDialog):
|
||||||
stealth_details.setWordWrap(True)
|
stealth_details.setWordWrap(True)
|
||||||
stealth_details.setTextInteractionFlags(QtCore.Qt.TextBrowserInteraction)
|
stealth_details.setTextInteractionFlags(QtCore.Qt.TextBrowserInteraction)
|
||||||
stealth_details.setOpenExternalLinks(True)
|
stealth_details.setOpenExternalLinks(True)
|
||||||
|
stealth_details.setMinimumSize(stealth_details.sizeHint())
|
||||||
self.stealth_checkbox = QtWidgets.QCheckBox()
|
self.stealth_checkbox = QtWidgets.QCheckBox()
|
||||||
self.stealth_checkbox.setCheckState(QtCore.Qt.Unchecked)
|
self.stealth_checkbox.setCheckState(QtCore.Qt.Unchecked)
|
||||||
self.stealth_checkbox.setText(strings._("gui_settings_stealth_option", True))
|
self.stealth_checkbox.setText(strings._("gui_settings_stealth_option", True))
|
||||||
|
|
||||||
hidservauth_details = QtWidgets.QLabel(strings._('gui_settings_stealth_hidservauth_string', True))
|
hidservauth_details = QtWidgets.QLabel(strings._('gui_settings_stealth_hidservauth_string', True))
|
||||||
hidservauth_details.setWordWrap(True)
|
hidservauth_details.setWordWrap(True)
|
||||||
|
hidservauth_details.setMinimumSize(hidservauth_details.sizeHint())
|
||||||
hidservauth_details.hide()
|
hidservauth_details.hide()
|
||||||
|
|
||||||
self.hidservauth_copy_button = QtWidgets.QPushButton(strings._('gui_copy_hidservauth', True))
|
self.hidservauth_copy_button = QtWidgets.QPushButton(strings._('gui_copy_hidservauth', True))
|
||||||
|
|
Loading…
Reference in a new issue