Fabcoin Core  0.16.2
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=0)
 

Protected Member Functions

bool eventFilter (QObject *obj, QEvent *evt)
 

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 134 of file guiutil.h.

Constructor & Destructor Documentation

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

Definition at line 483 of file guiutil.cpp.

Member Function Documentation

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

Definition at line 490 of file guiutil.cpp.

Here is the call graph for this function:

Member Data Documentation

int GUIUtil::ToolTipToRichTextFilter::size_threshold
private

Definition at line 145 of file guiutil.h.


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