1
0

qt QRDialog: try to fix layout-sizing issues

related https://github.com/spesmilo/electrum/pull/7218
closes https://github.com/spesmilo/electrum/pull/7223
This commit is contained in:
SomberNight
2022-07-12 16:50:49 +02:00
parent 28fe345b0b
commit 430a61eb42

View File

@@ -116,7 +116,6 @@ class QRDialog(WindowModalDialog):
help_text = data if show_text else help_text
if help_text:
qr_hbox.setContentsMargins(0, 0, 0, 44)
text_label = WWLabel()
text_label.setText(help_text)
vbox.addWidget(text_label)
@@ -165,3 +164,8 @@ class QRDialog(WindowModalDialog):
vbox.addLayout(hbox)
self.setLayout(vbox)
# note: the word-wrap on the text_label is causing layout sizing issues.
# see https://stackoverflow.com/a/25661985 and https://bugreports.qt.io/browse/QTBUG-37673
# workaround:
self.setMinimumSize(self.sizeHint())