forked from qt-creator/qt-creator
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:
@@ -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()
|
||||
|
||||
Reference in New Issue
Block a user