File indexing completed on 2024-05-12 15:59:35
0001 /* 0002 * SPDX-FileCopyrightText: 2008 Cyrille Berger <cberger@cberger.net> 0003 * 0004 * SPDX-License-Identifier: LGPL-2.1-or-later 0005 */ 0006 0007 #include "KoColorTransformation.h" 0008 #include <QDebug> 0009 0010 KoColorTransformation::~KoColorTransformation() 0011 { 0012 } 0013 0014 QList<QString> KoColorTransformation::parameters() const 0015 { 0016 return QList<QString>(); 0017 } 0018 0019 int KoColorTransformation::parameterId(const QString& name) const 0020 { 0021 Q_UNUSED(name); 0022 qFatal("No parameter for this transformation"); 0023 return -1; 0024 } 0025 0026 void KoColorTransformation::setParameter(int id, const QVariant& parameter) 0027 { 0028 Q_UNUSED(id); 0029 Q_UNUSED(parameter); 0030 qFatal("No parameter for this transformation"); 0031 } 0032 0033 void KoColorTransformation::setParameters(const QHash<QString, QVariant> & parameters) 0034 { 0035 for (QHash<QString, QVariant>::const_iterator it = parameters.begin(); it != parameters.end(); ++it) { 0036 setParameter( parameterId(it.key()), it.value()); 0037 } 0038 0039 }