From d37b5e7d750deb202d80b058dfa0c714cdea32cc Mon Sep 17 00:00:00 2001 From: SomberNight Date: Mon, 29 Aug 2022 13:30:59 +0000 Subject: [PATCH] Qt ReceiveTabWidget: change cursor to hint QR code can be clicked --- electrum/gui/qt/receive_tab.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/electrum/gui/qt/receive_tab.py b/electrum/gui/qt/receive_tab.py index 2d0305991..f401de435 100644 --- a/electrum/gui/qt/receive_tab.py +++ b/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)