GrantleeTheme::GenericFormatter

GrantleeTheme::GenericFormatter Class Reference

#include <genericformatter.h>

Inheritance diagram for GrantleeTheme::GenericFormatter:

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 34 of file genericformatter.h.

Member Function Documentation

void GenericFormatter::setApplicationDomain ( const QByteArray domain)

Translation domain for the Grantlee localizer.

Definition at line 75 of file genericformatter.cpp.

void GenericFormatter::setTemplateContent ( const QString content)

Set template content from a string rather than a file.

Definition at line 94 of file genericformatter.cpp.


The documentation for this class was generated from the following files:
This file is part of the KDE documentation.
Documentation copyright © 1996-2020 The KDE developers.
Generated on Sat Aug 8 2020 23:15:10 by doxygen 1.8.11 written by Dimitri van Heesch, © 1997-2006

KDE's Doxygen guidelines are available online.