/** * Set the current algorithm * * @param algorithm One of the strings returned by @ref algorithmList */ void EFX::setAlgorithm(QString algorithm) { if (algorithmList().contains(algorithm) == true) m_algorithm = QString(algorithm); else m_algorithm = KCircleAlgorithmName; updatePreview(); }
void EFX::setAlgorithm(const QString& algorithm) { if (algorithmList().contains(algorithm) == true) m_algorithm = QString(algorithm); else m_algorithm = KCircleAlgorithmName; emit changed(m_id); }