SomberNight 3 years ago
parent
commit
430a61eb42
No known key found for this signature in database GPG Key ID: B33B5F232C6271E9
  1. 6
      electrum/gui/qt/qrcodewidget.py

6
electrum/gui/qt/qrcodewidget.py

@ -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())

Loading…
Cancel
Save