Browse Source

qt ReceiveTab: ensure TabWidget has frame in more cases

patch-4
SomberNight 3 years ago
parent
commit
7daeccdf85
No known key found for this signature in database GPG Key ID: B33B5F232C6271E9
  1. 3
      electrum/gui/qt/receive_tab.py

3
electrum/gui/qt/receive_tab.py

@ -409,6 +409,9 @@ class ReceiveTabWidget(QWidget):
tooltip = _('Click to switch between text and QR code view')
w.setToolTip(tooltip)
textedit.setFocusPolicy(Qt.NoFocus)
if isinstance(help_widget, QLabel):
help_widget.setFrameStyle(QFrame.StyledPanel)
help_widget.setStyleSheet("QLabel {border:1px solid gray; border-radius:2px; }")
hbox = QHBoxLayout()
hbox.setContentsMargins(0, 0, 0, 0)
hbox.addWidget(textedit)

Loading…
Cancel
Save