KTextTemplate::RenderContext Class

class KTextTemplate::RenderContext

Provides storage facility for state while rendering a template. More...

Header: #include <KTextTemplate/RenderContext>
CMake: find_package(KF6 REQUIRED COMPONENTS TextTemplate)
target_link_libraries(mytarget PRIVATE KF6::TextTemplate)

Public Functions

bool contains(KTextTemplate::Node *const scopeNode) const
QVariant &data(const KTextTemplate::Node *const scopeNode)

Detailed Description

This class can not be instatiated by users of it. An instance of RenderContext is available through Context::renderContext() for use with implementations of re-entrant template tags.

Member Function Documentation

bool RenderContext::contains(KTextTemplate::Node *const scopeNode) const

Returns whether the RenderContext contains data for scopeNode.

QVariant &RenderContext::data(const KTextTemplate::Node *const scopeNode)

Returns the data for the node scopeNode.