| 198 | } |
| 199 | |
| 200 | void BaseDock::nameChanged() { |
| 201 | if (m_initializing || !m_aspect || m_aspects.size() > 1) |
| 202 | return; |
| 203 | |
| 204 | if (!m_leName) { |
| 205 | DEBUG("BaseDock: m_leName not initialized"); |
| 206 | Q_ASSERT(false); |
| 207 | return; |
| 208 | } |
| 209 | |
| 210 | if (!m_aspect->setName(m_leName->text(), AbstractAspect::NameHandling::UniqueRequired)) { |
| 211 | SET_WARNING_STYLE(m_leName) |
| 212 | m_leName->setToolTip(i18n("Please choose another name, because this is already in use.")); |
| 213 | } else { |
| 214 | m_leName->setStyleSheet(QString()); |
| 215 | m_leName->setToolTip(QString()); |
| 216 | } |
| 217 | } |
| 218 | |
| 219 | void BaseDock::commentChanged() { |
| 220 | if (m_initializing || !m_aspect || m_aspects.size() > 1) |
nothing calls this directly
no test coverage detected