Static helpers for generating common HTML tag strings.
More...
#include <htmlutil.h>
|
| static QString | startParagraph (const QColor &color=QColor(), const QColor &backgroundColor=QColor()) |
| | Return an opening <p> tag with optional inline color styles.
|
| |
| static QString | endParagraph () |
| | Return a closing </p> tag.
|
| |
| static QString | startBold () |
| | Return an opening <b> tag.
|
| |
| static QString | endBold () |
| | Return a closing </b> tag.
|
| |
| static QString | startStrong () |
| | Return an opening <strong> tag.
|
| |
| static QString | endStrong () |
| | Return a closing </strong> tag.
|
| |
Static helpers for generating common HTML tag strings.
Each method returns a QString containing the appropriate HTML tag or attribute, ready to be concatenated into an HTML fragment.
Definition at line 14 of file htmlutil.h.
◆ endBold()
| static QString HtmlUtil::endBold |
( |
| ) |
|
|
static |
Return a closing </b> tag.
- Returns
- "</b>"
◆ endParagraph()
| static QString HtmlUtil::endParagraph |
( |
| ) |
|
|
static |
Return a closing </p> tag.
- Returns
- "</p>"
◆ endStrong()
| static QString HtmlUtil::endStrong |
( |
| ) |
|
|
static |
Return a closing </strong> tag.
- Returns
- "</strong>"
◆ startBold()
| static QString HtmlUtil::startBold |
( |
| ) |
|
|
static |
Return an opening <b> tag.
- Returns
- "<b>"
◆ startParagraph()
| static QString HtmlUtil::startParagraph |
( |
const QColor & |
color = QColor(), |
|
|
const QColor & |
backgroundColor = QColor() |
|
) |
| |
|
static |
Return an opening <p> tag with optional inline color styles.
- Parameters
-
| color | Foreground text color (invalid QColor = omitted) |
| backgroundColor | Background color (invalid QColor = omitted) |
- Returns
- HTML string for the opening paragraph tag
◆ startStrong()
| static QString HtmlUtil::startStrong |
( |
| ) |
|
|
static |
Return an opening <strong> tag.
- Returns
- "<strong>"
The documentation for this class was generated from the following file: