GrantleeTheme::GenericFormatter
#include <genericformatter.h>
Public Member Functions | |
GenericFormatter (const QString &defaultHtmlMain, const QString &themePath) | |
QString | errorMessage () const |
void | reloadTemplate () |
QString | render (const QVariantHash &mapping) const |
void | setApplicationDomain (const QByteArray &domain) |
void | setDefaultHtmlMainFile (const QString &name) |
void | setTemplateContent (const QString &content) |
void | setTemplatePath (const QString &path) |
Detailed Description
Convenience class for using a Grantlee theme.
Definition at line 22 of file genericformatter.h.
Constructor & Destructor Documentation
◆ GenericFormatter() [1/2]
GenericFormatter::GenericFormatter | ( | ) |
Definition at line 39 of file genericformatter.cpp.
◆ GenericFormatter() [2/2]
|
explicit |
Definition at line 31 of file genericformatter.cpp.
Member Function Documentation
◆ errorMessage()
QString GenericFormatter::errorMessage | ( | ) | const |
Definition at line 70 of file genericformatter.cpp.
◆ reloadTemplate()
void GenericFormatter::reloadTemplate | ( | ) |
Definition at line 92 of file genericformatter.cpp.
◆ render()
QString GenericFormatter::render | ( | const QVariantHash & | mapping | ) | const |
Definition at line 75 of file genericformatter.cpp.
◆ setApplicationDomain()
void GenericFormatter::setApplicationDomain | ( | const QByteArray & | domain | ) |
Translation domain for the Grantlee localizer.
Definition at line 65 of file genericformatter.cpp.
◆ setDefaultHtmlMainFile()
void GenericFormatter::setDefaultHtmlMainFile | ( | const QString & | name | ) |
Definition at line 46 of file genericformatter.cpp.
◆ setTemplateContent()
void GenericFormatter::setTemplateContent | ( | const QString & | content | ) |
Set template content from a string rather than a file.
Definition at line 84 of file genericformatter.cpp.
◆ setTemplatePath()
void GenericFormatter::setTemplatePath | ( | const QString & | path | ) |
Definition at line 54 of file genericformatter.cpp.
The documentation for this class was generated from the following files:
Documentation copyright © 1996-2024 The KDE developers.
Generated on Fri Nov 22 2024 12:10:00 by doxygen 1.12.0 written by Dimitri van Heesch, © 1997-2006
KDE's Doxygen guidelines are available online.