22 if (!m_idToGradient.contains(id))
26 while (base.size() > 0 && base.at(base.size() - 1).isDigit())
27 base = base.left(base.size() - 1);
30 while (m_idToGradient.contains(newId)) {
32 newId = base + QString::number(counter);
60 if (!m_idToGradient.contains(id))
66 QString changedId = uniqueId(newId);
67 QGradient gradient = m_idToGradient.value(id);
69 emit gradientRenamed(id, changedId);
71 m_idToGradient.remove(id);
72 m_idToGradient[changedId] = gradient;