MCPcopy Create free account
hub / github.com/KDE/labplot / aspectDescriptionChanged

Method aspectDescriptionChanged

src/frontend/dockwidgets/BaseDock.cpp:255–277  ·  view source on GitHub ↗

SLOTs for changes triggered in the aspect

Source from the content-addressed store, hash-verified

253//********** SLOTs for changes triggered in the aspect ********
254//*************************************************************
255void 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
279void BaseDock::aspectVisibleChanged(bool on) {
280 CONDITIONAL_LOCK_RETURN;

Callers

nothing calls this directly

Calls 5

commentMethod · 0.80
sizeMethod · 0.45
nameMethod · 0.45
textMethod · 0.45
setTextMethod · 0.45

Tested by

no test coverage detected