DesignSystem: Update header data on active theme changed

Task-number: QDS-14670
Change-Id: I67db4df138d82b8fde8cee1ace52af493995bcee
Reviewed-by: Thomas Hartmann <thomas.hartmann@qt.io>
This commit is contained in:
Vikas Pachdha
2025-03-19 22:46:04 +01:00
committed by Thomas Hartmann
parent 5b55cb605c
commit a6c9fbb98e

View File

@@ -35,6 +35,10 @@ void CollectionModel::setActiveTheme(const QString &themeName)
if (const auto themeId = m_collection->themeId(themeName.toLatin1())) {
m_collection->setActiveTheme(*themeId);
aboutToSave();
// Update the active status
if (rowCount() && columnCount())
emit headerDataChanged(Qt::Horizontal, 0, columnCount() - 1);
}
}