Utils: Let aspect transition functions indicate there was a change

Helps to make it easier to reason about the necessity of emitting
*changed signals.

Change-Id: Ieab29b25f5cc2799e193417b9cab02c99501c60a
Reviewed-by: Marcus Tillmanns <marcus.tillmanns@qt.io>
This commit is contained in:
hjk
2023-07-20 14:25:13 +02:00
parent 11e1c7b1a4
commit 7cc6078756
6 changed files with 103 additions and 50 deletions

View File

@@ -470,10 +470,12 @@ void SourcePathMapAspect::addToLayout(Layouting::LayoutItem &parent)
parent.addItem(d->m_widget.data());
}
void SourcePathMapAspect::guiToBuffer()
bool SourcePathMapAspect::guiToBuffer()
{
const SourcePathMap old = m_buffer;
if (d->m_widget)
m_buffer = d->m_widget->sourcePathMap();
return m_buffer != old;
}
void SourcePathMapAspect::bufferToGui()