Set of utility functions designed to create wider tooltips, since Qt does not allow us to set this directly.
More...
#include <pqWidgetUtilities.h>
|
| static QString | formatTooltip (const QString &rawText) |
| | Convert a rich-text QString into an HTML, formatted with wrapping if necessary. More...
|
| |
| static QString | formatMarkdownTooltip (const QString &markdown) |
| | Convert a Markdown QString into HTML suitable for a tooltip. More...
|
| |
| static void | formatChildTooltips (QWidget *parentObject) |
| |
|
| static std::string | rstToHtml (const char *rstStr) |
| | Convert proxy documentation from RST to HTML (so that it can be used in Qt) More...
|
| |
| static QString | rstToHtml (const QString &rstStr) |
| | Convert proxy documentation from RST to HTML (so that it can be used in Qt) More...
|
| |
Set of utility functions designed to create wider tooltips, since Qt does not allow us to set this directly.
Definition at line 17 of file pqWidgetUtilities.h.
◆ formatTooltip()
| static QString pqWidgetUtilities::formatTooltip |
( |
const QString & |
rawText | ) |
|
|
static |
Convert a rich-text QString into an HTML, formatted with wrapping if necessary.
◆ formatMarkdownTooltip()
| static QString pqWidgetUtilities::formatMarkdownTooltip |
( |
const QString & |
markdown | ) |
|
|
static |
Convert a Markdown QString into HTML suitable for a tooltip.
A short tooltip stays on one line and a long one is wrapped at a maximum width, the same way formatTooltip() does for rich-text. Returns an empty string if the Markdown is empty.
◆ rstToHtml() [1/2]
| static std::string pqWidgetUtilities::rstToHtml |
( |
const char * |
rstStr | ) |
|
|
static |
Convert proxy documentation from RST to HTML (so that it can be used in Qt)
◆ rstToHtml() [2/2]
| static QString pqWidgetUtilities::rstToHtml |
( |
const QString & |
rstStr | ) |
|
|
static |
Convert proxy documentation from RST to HTML (so that it can be used in Qt)
◆ formatChildTooltips()
| static void pqWidgetUtilities::formatChildTooltips |
( |
QWidget * |
parentObject | ) |
|
|
static |
The documentation for this class was generated from the following file: