Exemple #1
0
/**
 * 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();
}
Exemple #2
0
void EFX::setAlgorithm(const QString& algorithm)
{
	if (algorithmList().contains(algorithm) == true)
		m_algorithm = QString(algorithm);
	else
		m_algorithm = KCircleAlgorithmName;

	emit changed(m_id);
}