delete m_vbox;
}
-void ParameterContainer::meetDependency(const QString& name, QString type, QString value)
+void ParameterContainer::meetDependency(const QString& name, const QString &type, const QString &value)
{
if (type == "curve") {
KisCurveWidget *curve = (KisCurveWidget*)m_valueItems[name];
if (curve) {
- int color = value.toInt();
+ const int color = value.toInt();
curve->setPixmap(QPixmap::fromImage(ColorTools::rgbCurvePlane(curve->size(), (ColorTools::ColorsRGB)(color == 3 ? 4 : color), 0.8)));
}
} else if (type == "bezier_spline") {
* @param name Name of the parameter which will be updated
* @param type Type of the parameter which will be updated
* @param value Value of the dependency parameter */
- void meetDependency(const QString& name, QString type, QString value);
+ void meetDependency(const QString& name, const QString &type, const QString &value);
wipeInfo getWipeInfo(QString value);
QString getWipeString(wipeInfo info);
/** @brief Delete all child widgets */
bool m_needsMonitorEffectScene;
signals:
- void parameterChanged(const QDomElement, const QDomElement, int);
+ void parameterChanged(const QDomElement &, const QDomElement&, int);
void syncEffectsPos(int);
void displayMessage(const QString&, int);
void disableCurrentFilter(bool);