Dash Core Source Documentation (0.16.0.1)

Find detailed information regarding the Dash Core source code.

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:
+ Collaboration diagram for GUIUtil::ToolTipToRichTextFilter:

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

Constructor & Destructor Documentation

◆ ToolTipToRichTextFilter()

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

Definition at line 715 of file guiutil.cpp.

Member Function Documentation

◆ eventFilter()

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

Definition at line 722 of file guiutil.cpp.

References GUIUtil::HtmlEscape(), and size_threshold.

Member Data Documentation

◆ size_threshold

int GUIUtil::ToolTipToRichTextFilter::size_threshold
private

Definition at line 208 of file guiutil.h.

Referenced by eventFilter().


The documentation for this class was generated from the following files:
Released under the MIT license