Bitcoin Core  0.20.99
P2P Digital Currency
Public Member Functions | List of all members
GUIUtil::LabelOutOfFocusEventFilter Class Reference

Qt event filter that intercepts QEvent::FocusOut events for QLabel objects, and resets their `textInteractionFlags' property to get rid of the visible cursor. More...

#include <guiutil.h>

Inheritance diagram for GUIUtil::LabelOutOfFocusEventFilter:
[legend]
Collaboration diagram for GUIUtil::LabelOutOfFocusEventFilter:
[legend]

Public Member Functions

 LabelOutOfFocusEventFilter (QObject *parent)
 
bool eventFilter (QObject *watched, QEvent *event) override
 

Detailed Description

Qt event filter that intercepts QEvent::FocusOut events for QLabel objects, and resets their `textInteractionFlags' property to get rid of the visible cursor.

This is a temporary fix of QTBUG-59514.

Definition at line 170 of file guiutil.h.

Constructor & Destructor Documentation

◆ LabelOutOfFocusEventFilter()

GUIUtil::LabelOutOfFocusEventFilter::LabelOutOfFocusEventFilter ( QObject *  parent)
explicit

Definition at line 448 of file guiutil.cpp.

Member Function Documentation

◆ eventFilter()

bool GUIUtil::LabelOutOfFocusEventFilter::eventFilter ( QObject *  watched,
QEvent *  event 
)
override

Definition at line 453 of file guiutil.cpp.


The documentation for this class was generated from the following files: