From a6c9fbb98e5cd0f9a19c061a908f9e4d08e7be00 Mon Sep 17 00:00:00 2001 From: Vikas Pachdha Date: Wed, 19 Mar 2025 22:46:04 +0100 Subject: [PATCH] DesignSystem: Update header data on active theme changed Task-number: QDS-14670 Change-Id: I67db4df138d82b8fde8cee1ace52af493995bcee Reviewed-by: Thomas Hartmann --- .../components/designsystemview/collectionmodel.cpp | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/src/plugins/qmldesigner/components/designsystemview/collectionmodel.cpp b/src/plugins/qmldesigner/components/designsystemview/collectionmodel.cpp index c4935362b2c..b6013a53488 100644 --- a/src/plugins/qmldesigner/components/designsystemview/collectionmodel.cpp +++ b/src/plugins/qmldesigner/components/designsystemview/collectionmodel.cpp @@ -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); } }