KTextTemplate
node.cpp
130 static_cast<QList<KTextTemplate::Node *> &>(*this) = static_cast<QList<KTextTemplate::Node *>>(list);
199QList<FilterExpression> AbstractNodeFactory::getFilterExpressionList(const QStringList &list, Parser *p) const
QList< FilterExpression > getFilterExpressionList(const QStringList &list, Parser *p) const
Returns a list of FilterExpression objects created with Parser p as described by the content of list.
Definition node.cpp:199
Q_INVOKABLE QStringList smartSplit(const QString &str) const
Splits str into a list, taking quote marks into account.
Definition node.cpp:208
The Context class holds the context to render a Template with.
Definition context.h:107
A FilterExpression object represents a filter expression in a template.
Definition filterexpression.h:109
A list of Nodes with some convenience API for rendering them.
Definition node.h:141
bool containsNonText() const
Returns true if this NodeList contains non-text nodes.
Definition node.cpp:176
void append(KTextTemplate::Node *node)
Appends node to the end of this NodeList.
Definition node.cpp:150
void render(OutputStream *stream, Context *c) const
Renders the list of Nodes in the Context c.
Definition node.cpp:181
TemplateImpl * containerTemplate() const
Returns a raw pointer to the Template this Node is in.
Definition node.cpp:106
void streamValueInContext(OutputStream *stream, const QVariant &input, KTextTemplate::Context *c) const
Renders the value input in the Context c.
Definition node.cpp:88
The OutputStream class is used to render templates to a QTextStream.
Definition outputstream.h:70
The Parser class processes a string template into a tree of nodes.
Definition parser.h:38
A QString wrapper class for containing whether a string is safe or needs to be escaped.
Definition safestring.h:81
The KTextTemplate namespace holds all public KTextTemplate API.
Definition Mainpage.dox:8
KTextTemplate::SafeString getSafeString(const QVariant &input)
Retrieves and returns a SafeString from the input.
Definition util.cpp:91
void append(QList< T > &&value)
const_reference at(qsizetype i) const const
qsizetype size() const const
QObject * parent() const const
T qobject_cast(QObject *object)
QString number(double n, char format, int precision)
int userType() const const
T value() const const
Q_D(Todo)
Utility functions used throughout KTextTemplate.
This file is part of the KDE documentation.
Documentation copyright © 1996-2024 The KDE developers.
Generated on Sat Dec 21 2024 16:56:17 by doxygen 1.12.0 written by Dimitri van Heesch, © 1997-2006
Documentation copyright © 1996-2024 The KDE developers.
Generated on Sat Dec 21 2024 16:56:17 by doxygen 1.12.0 written by Dimitri van Heesch, © 1997-2006
KDE's Doxygen guidelines are available online.