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:
@@ -116,7 +116,6 @@ class QRDialog(WindowModalDialog):
|
|||||||
|
|
||||||
help_text = data if show_text else help_text
|
help_text = data if show_text else help_text
|
||||||
if help_text:
|
if help_text:
|
||||||
qr_hbox.setContentsMargins(0, 0, 0, 44)
|
|
||||||
text_label = WWLabel()
|
text_label = WWLabel()
|
||||||
text_label.setText(help_text)
|
text_label.setText(help_text)
|
||||||
vbox.addWidget(text_label)
|
vbox.addWidget(text_label)
|
||||||
@@ -165,3 +164,8 @@ class QRDialog(WindowModalDialog):
|
|||||||
|
|
||||||
vbox.addLayout(hbox)
|
vbox.addLayout(hbox)
|
||||||
self.setLayout(vbox)
|
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())
|
||||||
|
|||||||
Reference in New Issue
Block a user