KDECore
#include <kuitsemantics_p.h>
Public Member Functions | |
KuitSemantics (const QString &lang) | |
~KuitSemantics () | |
QString | format (const QString &text, const QString &ctxt) const |
Static Public Member Functions | |
static QString | escape (const QString &text) |
static bool | mightBeRichText (const QString &text) |
Detailed Description
class for formatting semantic markup in UI messages
(used by KLocalizedString)
KuitSemantics resolves semantic markup in user interface text into appropriate visual formatting.
Definition at line 38 of file kuitsemantics_p.h.
Constructor & Destructor Documentation
KuitSemantics::KuitSemantics | ( | const QString & | lang | ) |
Constructor.
- Parameters
-
lang language to create the formatter for
Definition at line 1574 of file kuitsemantics.cpp.
KuitSemantics::~KuitSemantics | ( | ) |
Destructor.
Definition at line 1579 of file kuitsemantics.cpp.
Member Function Documentation
Convert &, ", ', <, > characters into XML entities &, <, >, ', ", respectively.
Definition at line 1633 of file kuitsemantics.cpp.
Transforms the semantic markup in the given text into visual formatting.
The appropriate visual formatting is decided based on the semantic context marker provided in the context string.
- Parameters
-
text text containing the semantic markup ctxt context of the text
- See also
- More information on semantic markup in UI messages in the article on Techbase.
Definition at line 1584 of file kuitsemantics.cpp.
Poor man's version of Qt::mightBeRichText() (cannot link to QtGui).
Definition at line 1589 of file kuitsemantics.cpp.
The documentation for this class was generated from the following files:
Documentation copyright © 1996-2020 The KDE developers.
Generated on Mon Jun 22 2020 13:22:13 by doxygen 1.8.7 written by Dimitri van Heesch, © 1997-2006
KDE's Doxygen guidelines are available online.