qt ReceiveTab: ensure TabWidget has frame in more cases
This commit is contained in:
@@ -409,6 +409,9 @@ class ReceiveTabWidget(QWidget):
|
|||||||
tooltip = _('Click to switch between text and QR code view')
|
tooltip = _('Click to switch between text and QR code view')
|
||||||
w.setToolTip(tooltip)
|
w.setToolTip(tooltip)
|
||||||
textedit.setFocusPolicy(Qt.NoFocus)
|
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 = QHBoxLayout()
|
||||||
hbox.setContentsMargins(0, 0, 0, 0)
|
hbox.setContentsMargins(0, 0, 0, 0)
|
||||||
hbox.addWidget(textedit)
|
hbox.addWidget(textedit)
|
||||||
|
|||||||
Reference in New Issue
Block a user