forked from qt-creator/qt-creator
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:
committed by
Thomas Hartmann
parent
5b55cb605c
commit
a6c9fbb98e
@@ -35,6 +35,10 @@ void CollectionModel::setActiveTheme(const QString &themeName)
|
|||||||
if (const auto themeId = m_collection->themeId(themeName.toLatin1())) {
|
if (const auto themeId = m_collection->themeId(themeName.toLatin1())) {
|
||||||
m_collection->setActiveTheme(*themeId);
|
m_collection->setActiveTheme(*themeId);
|
||||||
aboutToSave();
|
aboutToSave();
|
||||||
|
|
||||||
|
// Update the active status
|
||||||
|
if (rowCount() && columnCount())
|
||||||
|
emit headerDataChanged(Qt::Horizontal, 0, columnCount() - 1);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user