Bitcoin Core  27.99.0
P2P Digital Currency
Public Member Functions | Protected Member Functions | Private Attributes | List of all members
GUIUtil::ToolTipToRichTextFilter Class Reference

Qt event filter that intercepts ToolTipChange events, and replaces the tooltip with a rich text representation if needed. More...

#include <guiutil.h>

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

Public Member Functions

 ToolTipToRichTextFilter (int size_threshold, QObject *parent=nullptr)
 

Protected Member Functions

bool eventFilter (QObject *obj, QEvent *evt) override
 

Private Attributes

int size_threshold
 

Detailed Description

Qt event filter that intercepts ToolTipChange events, and replaces the tooltip with a rich text representation if needed.

This assures that Qt can word-wrap long tooltip messages. Tooltips longer than the provided size threshold (in characters) are wrapped.

Definition at line 187 of file guiutil.h.

Constructor & Destructor Documentation

◆ ToolTipToRichTextFilter()

GUIUtil::ToolTipToRichTextFilter::ToolTipToRichTextFilter ( int  size_threshold,
QObject *  parent = nullptr 
)
explicit

Definition at line 461 of file guiutil.cpp.

Member Function Documentation

◆ eventFilter()

bool GUIUtil::ToolTipToRichTextFilter::eventFilter ( QObject *  obj,
QEvent *  evt 
)
overrideprotected

Definition at line 468 of file guiutil.cpp.

Here is the call graph for this function:

Member Data Documentation

◆ size_threshold

int GUIUtil::ToolTipToRichTextFilter::size_threshold
private

Definition at line 198 of file guiutil.h.


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