Krita is a free and open source cross-platform application that offers an end-to-end solution for creating digital art files from scratch built on the KDE and Qt frameworks.
C++
/*
* SPDX-FileCopyrightText: 2008 Cyrille Berger <[email protected]>
*
* SPDX-License-Identifier: LGPL-2.1-or-later
*/
#include "KoColorTransformation.h"
#include <QDebug>
#include <QVariant>
KoColorTransformation::~KoColorTransformation()
{
}
QList<QString> KoColorTransformation::parameters() const
{
return QList<QString>();
}
int KoColorTransformation::parameterId(const QString& name) const
{
Q_UNUSED(name);
qFatal("No parameter for this transformation");
return -1;
}
void KoColorTransformation::setParameter(int id, const QVariant& parameter)
{
Q_UNUSED(id);
Q_UNUSED(parameter);
qFatal("No parameter for this transformation");
}
void KoColorTransformation::setParameters(const QHash<QString, QVariant> & parameters)
{
for (QHash<QString, QVariant>::const_iterator it = parameters.begin(); it != parameters.end(); ++it) {
setParameter( parameterId(it.key()), it.value());
}
}