Browse Source

Qt ReceiveTabWidget: change cursor to hint QR code can be clicked

patch-4
SomberNight 2 years ago
parent
commit
d37b5e7d75
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

@ -4,7 +4,7 @@
from typing import Optional, TYPE_CHECKING
from PyQt5.QtGui import QFont
from PyQt5.QtGui import QFont, QCursor
from PyQt5.QtCore import Qt, QSize
from PyQt5.QtWidgets import (QComboBox, QLabel, QVBoxLayout, QGridLayout, QLineEdit,
QHBoxLayout, QPushButton, QWidget, QSizePolicy, QFrame)
@ -361,6 +361,7 @@ class ReceiveTabWidget(QWidget):
tooltip = _('Click to switch between text and QR code view')
w._default_tooltip = tooltip
w.setToolTip(tooltip)
w.setCursor(QCursor(Qt.PointingHandCursor))
textedit.setFocusPolicy(Qt.NoFocus)
if isinstance(help_widget, QLabel):
help_widget.setFrameStyle(QFrame.StyledPanel)

Loading…
Cancel
Save