SLOTs for changes triggered in the aspect
| 253 | //********** SLOTs for changes triggered in the aspect ******** |
| 254 | //************************************************************* |
| 255 | void BaseDock::aspectDescriptionChanged(const AbstractAspect* aspect) { |
| 256 | if (m_aspect != aspect || m_aspects.size() > 1) |
| 257 | return; |
| 258 | |
| 259 | if (!m_leName) { |
| 260 | DEBUG("BaseDock: m_leName not initialized"); |
| 261 | Q_ASSERT(false); |
| 262 | return; |
| 263 | } |
| 264 | |
| 265 | CONDITIONAL_LOCK_RETURN; |
| 266 | if (aspect->name() != m_leName->text()) |
| 267 | m_leName->setText(aspect->name()); |
| 268 | else { |
| 269 | if (!m_teComment) { |
| 270 | DEBUG("BaseDock: m_teComment not initialized"); |
| 271 | Q_ASSERT(false); |
| 272 | return; |
| 273 | } |
| 274 | if (aspect->comment() != m_teComment->text()) |
| 275 | m_teComment->document()->setPlainText(aspect->comment()); |
| 276 | } |
| 277 | } |
| 278 | |
| 279 | void BaseDock::aspectVisibleChanged(bool on) { |
| 280 | CONDITIONAL_LOCK_RETURN; |