Krita Source Code Documentation
Loading...
Searching...
No Matches
KisLevelsFilterConfiguration.cpp File Reference
#include <QRegularExpression>
#include <kis_dom_utils.h>
#include "KisLevelsFilterConfiguration.h"

Go to the source code of this file.

Functions

void addParamNode (QDomDocument &doc, QDomElement &root, const QString &name, const QString &value, bool internal=false)
 

Function Documentation

◆ addParamNode()

void addParamNode ( QDomDocument & doc,
QDomElement & root,
const QString & name,
const QString & value,
bool internal = false )

Definition at line 290 of file KisLevelsFilterConfiguration.cpp.

295{
296 QDomText text = doc.createTextNode(value);
297 QDomElement t = doc.createElement("param");
298 t.setAttribute("name", name);
299 if (internal) {
300 t.setAttribute("type", "internal");
301 }
302 t.appendChild(text);
303 root.appendChild(t);
304}
float value(const T *src, size_t ch)

References value().