1
0

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

This commit is contained in:
SomberNight
2022-08-29 13:30:59 +00:00
parent abec59e17d
commit d37b5e7d75

View File

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